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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.