UserControl Constructor ()

 

Initializes a new instance of the UserControl class.

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

new : unit -> UserControl

You do not typically create an instance of UserControl. To create your own user control class, inherit from the UserControl class.

The following code example creates an instance of the UserControl derived class, MyCustomerInfoUserControl, which was created in the example section of the UserControl class overview. The user control is added to a Panel control and has its Dock property set to DockStyle.Fill. The Panel is then added to a Form.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: