Export (0) Print
Expand All

Form.ControlCollection Constructor

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
);

Parameters

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

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft