System.Drawing.Design.ToolboxItem.OnComponentsCreated Method

Raises the ToolboxItem.ComponentsCreated event.

Syntax

protected virtual void OnComponentsCreated (ToolboxComponentsCreatedEventArgs args)

Parameters

args
A System.Drawing.Design.ToolboxComponentsCreatedEventArgs that provides data for the event.

Remarks

The ToolboxItem.OnComponentsCreated(ToolboxComponentsCreatedEventArgs) method raises the ToolboxItem.ComponentsCreated event. This method is called after a toolbox item is invoked to create components and the ToolboxItem.CreateComponentsCore(System.ComponentModel.Design.IDesignerHost) method has returned.

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

The ToolboxItem.OnComponentsCreated(ToolboxComponentsCreatedEventArgs) 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.

Requirements

Namespace: System.Drawing.Design
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0