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 _
public ComponentTray(
   IDesigner mainDesigner,
 IServiceProvider serviceProvider
public: ComponentTray(
   IDesigner* mainDesigner,
 IServiceProvider* serviceProvider
public function ComponentTray(
   mainDesigner : IDesigner,
 serviceProvider : IServiceProvider


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


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


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