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 ...

Get Application Development Using Visual Basic® and .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.