This documentation is archived and is not being maintained.

IToolboxUser.ToolPicked Method

Selects the specified tool.

[Visual Basic]
Sub ToolPicked( _
   ByVal tool As ToolboxItem _
)
[C#]
void ToolPicked(
   ToolboxItem tool
);
[C++]
void ToolPicked(
   ToolboxItem* tool
);
[JScript]
function ToolPicked(
   tool : ToolboxItem
);

Parameters

tool
The ToolboxItem to select.

Remarks

ToolPicked is called when the user double-clicks on a toolbox item. The document designer should create a component for the specified tool. The Visual Studio .NET integrated development environment will only call ToolPicked on tools that are enabled in the toolbox.

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

IToolboxUser Interface | IToolboxUser Members | System.Drawing.Design Namespace | ToolboxItem

Show: