Raises the ToolboxItem.ComponentsCreating event.
- args
- A System.Drawing.Design.ToolboxComponentsCreatingEventArgs that provides data for the event.
The ToolboxItem.OnComponentsCreating(ToolboxComponentsCreatingEventArgs) method raises the ToolboxItem.ComponentsCreating event. This method is called after a toolbox item is invoked to create components, just before the ToolboxItem.CreateComponentsCore(System.ComponentModel.Design.IDesignerHost) method is called.
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The ToolboxItem.OnComponentsCreating(ToolboxComponentsCreatingEventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.