UserControl Constructor ()
.NET Framework (current version)
Initializes a new instance of the UserControl class.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: