Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ToolBar.ToolBarButtonCollection Constructor

ToolBar.ToolBarButtonCollection Constructor

Initializes a new instance of the ToolBar.ToolBarButtonCollection class and assigns it to the specified toolbar.

[Visual Basic]
Public Sub New( _
   ByVal owner As ToolBar _
)
[C#]
public ToolBar.ToolBarButtonCollection(
   ToolBar owner
);
[C++]
public: ToolBarButtonCollection(
   ToolBar* owner
);
[JScript]
public function ToolBar.ToolBarButtonCollection(
   owner : ToolBar
);

Parameters

owner
The ToolBar that is the parent of the collection of ToolBarButton controls.

Remarks

You do not typically create a ToolBar.ToolBarButtonCollection and explicitly call its constructor. By referencing the Buttons property of the ToolBar control, a ToolBar.ToolBarButtonCollection is created. You can then gain access to its properties and methods, and assign ToolBarButton controls to the collection.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ToolBar.ToolBarButtonCollection Class | ToolBar.ToolBarButtonCollection Members | System.Windows.Forms Namespace | ToolBarButton

Show:
© 2015 Microsoft