VB.NET Developer's Guide

Adding Toolbars to Forms

A toolbar is another control that is often docked to an edge of a form. In the .NET Framework, toolbars display buttons that can appear as standard buttons, toggle-style buttons, or drop-down style buttons. Toolbar buttons can appear as raised or flat when the mouse pointer moves over a flat button, its appearance changes to three-dimensional. Toolbars can also display drop-down menus that activate commands. As is common throughout Windows, a button can display an image along with text. Table 7.18 describes the properties of the Toolbar control:

Table 7.18: Properties of the Toolbar Control

Property

Description

(Bindings)

This collection holds all the bindings of properties of the toolbar to data sources.

(Name)

Indicates the name used in code to identify the toolbar.

AccessibleDescription

The description that will be reported to accessibility clients.

AccessibleName

The name that will be reported to accessibility clients.

AccessibleRole

The role that will be reported to accessibility clients.

AllowDrop

Determines if the toolbar will receive drag-and-drop notifications.

Anchor

The anchor of the toolbar.

Appearance

Controls the appearance of the toolbar.

AutoSize

Controls whether the toolbar will automatically size itself based on button size.

BackgroundImage

The background image used for the toolbar.

BorderStyle

Controls what type of border the toolbar will have.

Buttons

The collection of toolbar buttons that make up the toolbar.

ButtonSize

Suggests the size of buttons in the toolbar. Button sizes might still be different based on text, drop-downarrows, and others.

CausesValidation

Indicates whether the toolbar causes and raises...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Spring Stops
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.