ComponentTray::CreateComponentFromTool Method (ToolboxItem^)

 

Creates a component from the specified toolbox item, adds the component to the current document, and displays a representation for the component in the component tray.

Namespace:   System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)

public:
void CreateComponentFromTool(
	ToolboxItem^ tool
)

Parameters

tool
Type: System.Drawing.Design::ToolboxItem^

The ToolboxItem to create a component from.

This method checks the item for an appropriate DesignTimeVisibleAttribute before attempting to create the component and add it to the component tray.

.NET Framework
Available since 1.1
Return to top
Show: