This documentation is archived and is not being maintained.

ComponentTray Constructor

Initializes a new instance of the ComponentTray class using the specified designer and service provider.

[Visual Basic]
Public Sub New( _
   ByVal mainDesigner As IDesigner, _
   ByVal serviceProvider As IServiceProvider _
)
[C#]
public ComponentTray(
   IDesigner mainDesigner,
 IServiceProvider serviceProvider
);
[C++]
public: ComponentTray(
   IDesigner* mainDesigner,
 IServiceProvider* serviceProvider
);
[JScript]
public function ComponentTray(
   mainDesigner : IDesigner,
 serviceProvider : IServiceProvider
);

Parameters

mainDesigner
The IDesigner that is the main or document designer for the current project.
serviceProvider
An IServiceProvider that can be used to obtain design-time services.

Remarks

The component tray monitors component additions and removals and displays appropriate user interface objects to represent the components it contains.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ComponentTray Class | ComponentTray Members | System.Windows.Forms.Design Namespace

Show: