This documentation is archived and is not being maintained.

ToolboxItem.CreateComponentsCore Method

Creates a component or an array of components when the toolbox item is invoked.

[Visual Basic]
Protected Overridable Function CreateComponentsCore( _
   ByVal host As IDesignerHost _
) As IComponent()
[C#]
protected virtual IComponent[] CreateComponentsCore(
 IDesignerHost host
);
[C++]
protected: virtual IComponent* CreateComponentsCore(
 IDesignerHost* host
) [];
[JScript]
protected function CreateComponentsCore(
   host : IDesignerHost
) : IComponent[];

Parameters

host
The IDesignerHost to host the toolbox item.

Return Value

An array of created IComponent objects.

Remarks

Notes to Inheritors:  You can override this method to return the component or components that a toolbox item creates.

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 | IDesignerHost

Show: