ComponentsCreating Event
Collapse the table of content
Expand the table of content

ToolboxItem.ComponentsCreating Event

Occurs when components are about to be created.

[Visual Basic]
Public Event ComponentsCreating As _
public event ToolboxComponentsCreatingEventHandler
public: __event ToolboxComponentsCreatingEventHandler*

[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.


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.


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

© 2016 Microsoft