Form.ControlCollection Constructor (Form)

 

Initializes a new instance of the Form.ControlCollection class.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public ControlCollection(
	Form owner
)

Parameters

owner
Type: System.Windows.Forms.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.

System_CAPS_noteNote

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

.NET Framework
Available since 1.1
Return to top
Show: