Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Add Method (ToolBoxTabs Collection)

Visual Studio .NET 2003

Creates a new tab in the ToolBox and adds it to the ToolBoxTabs collection.

[Visual Basic .NET]
Public Function Add( _
   ByVal Name As String _
) As ToolBoxTab
[Visual Basic 6]
Function Add( _
   ByVal Name As String _
) As ToolBoxTab
HRESULT __stdcall Add(
   BSTR Name,
   /* [out, retval] */ ToolBoxTab** retVal
ToolBoxTab Add(
   string Name
[JScript .NET]
public function Add(
   Name : String
) : ToolBoxTab


Required. The name of the tab.

Return Value

Returns a ToolBoxTab object.


Sub ToolBoxAddExample()
   ' This adds a tab to the Toolbox.
   ' Define the variables and create an object reference to the IDE's  
   ' ToolBox object.
   Dim win As Window = DTE.Windows.Item(Constants.vsWindowKindToolbox)
   Dim objToolbox As ToolBox = win.Object
   Dim colTbxTabs As ToolBoxTabs

   ' Create an object reference to the ToolBoxTabs object.
   colTbxTabs = objToolbox.ToolBoxTabs

   ' Add a new tab to the Toolbox.
End Sub

See Also

Applies To: ToolBoxTabs Collection

© 2015 Microsoft