Application Development Using Visual Basic® and .NET
by Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
Toolbars
The ToolBar control is used on forms to display a row of buttons that invoke commands (similar to clicking a menu item). VB.NET toolbars generally use an ImageList control to maintain the images displayed by the toolbar. Each button on the toolbar is associated with an image from the image list.
The ToolBar class has a Buttons collection that represents the buttons on the toolbar. Properties such as Appearance, Autosize, and Wrapable control the appearance of the toolbar.
The ToolBarButton class has properties that configure the individual buttons on the toolbar. This class has many interesting properties, including:
ImageIndex indicates the image number from the ImageList control of the image associated with this button.
Text indicates ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access