ToolboxItem.ComponentsCreating Event
Occurs when components are about to be created.
[Visual Basic] Public Event ComponentsCreating As _ ToolboxComponentsCreatingEventHandler [C#] public event ToolboxComponentsCreatingEventHandler ComponentsCreating; [C++] public: __event ToolboxComponentsCreatingEventHandler* ComponentsCreating;
[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.
Event Data
The event handler receives an argument of type ToolboxComponentsCreatingEventArgs containing data related to this event. The following ToolboxComponentsCreatingEventArgs property provides information specific to this event.
| Property | Description |
|---|---|
| DesignerHost | Gets or sets an instance of the IDesignerHost that made the request to create toolbox components. |
Remarks
This event is raised each time that components of the toolbox item are about to be created. For more information about handling events, see Consuming Events.
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
ToolboxItem Class | ToolboxItem Members | System.Drawing.Design Namespace | ToolboxComponentsCreatingEventHandler