Represents a button on a
ToolBar object. May have one of the five predefined styles. See
ToolBarButtonStyle for more information.
The following example creates new ToolBarButton object, sets its properties
and adds it to an existing toolbar:
'use the default constructor
Dim tbb As ToolBarButton = New ToolBarButton()
tbb.Style = ToolBarButtonStyle.Toggle
tbb.Pushed = True
nToolBar1.Buttons.Add(tbb)
//use the default constructor
ToolBarButton tbb = new ToolBarButton();
tbb.Style = ToolBarButtonStyle.Toggle;
tbb.Pushed = true;
nToolBar1.Buttons.Add(tbb);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2