ToolboxItem.CreateComponentsCore Method (IDesignerHost)

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

Namespace: System.Drawing.Design
Assembly: System.Drawing (in system.drawing.dll)

protected:
virtual array<IComponent^>^ CreateComponentsCore (
	IDesignerHost^ host
)
protected IComponent[] CreateComponentsCore (
	IDesignerHost host
)
protected function CreateComponentsCore (
	host : IDesignerHost
) : IComponent[]
Not applicable.

Parameters

host

The IDesignerHost to host the toolbox item.

Return Value

An array of created IComponent objects.

If host is not a null reference (Nothing in Visual Basic), the CreateComponentsCore method adds the new components to the designer.

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: