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 _
public ToolBar.ToolBarButtonCollection(
   ToolBar owner
public: ToolBarButtonCollection(
   ToolBar* owner
public function ToolBar.ToolBarButtonCollection(
   owner : ToolBar


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


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.


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

© 2015 Microsoft