Initializes a new instance of the Form.ControlCollection class.
[Visual Basic] Public Sub New( _ ByVal owner As Form _ ) [C#] public Form.ControlCollection( Form owner ); [C++] public: ControlCollection( Form* owner ); [JScript] 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