This documentation is archived and is not being maintained.

Form.ControlCollection Constructor

Initializes a new instance of the Form.ControlCollection class.

[Visual Basic]
Public Sub New( _
   ByVal owner As Form _
public Form.ControlCollection(
   Form owner
public: ControlCollection(
   Form* owner
public function Form.ControlCollection(
   owner : Form


The Form to contain the controls added to the control collection.


This constructor allows you to properly bind the control collection to the form to enable controls to be added to the form.

Note   Because the control collection must be created with a specified form, you cannot create multiple collections of controls and interchange them with the form.


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

Form.ControlCollection Class | Form.ControlCollection Members | System.Windows.Forms Namespace