This documentation is archived and is not being maintained.

Control Constructor

.NET Framework 1.1

Initializes a new instance of the Control class.

Overload List

Initializes a new instance of the Control class with default settings.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public Control();
[C++] public: Control();
[JScript] public function Control();

Initializes a new instance of the Control class with specific text.

[Visual Basic] Public Sub New(String)
[C#] public Control(string);
[C++] public: Control(String*);
[JScript] public function Control(String);

Initializes a new instance of the Control class as a child control, with specific text.

[Visual Basic] Public Sub New(Control, String)
[C#] public Control(Control, string);
[C++] public: Control(Control*, String*);
[JScript] public function Control(Control, String);

Initializes a new instance of the Control class with specific text, size, and location.

[Visual Basic] Public Sub New(String, Integer, Integer, Integer, Integer)
[C#] public Control(string, int, int, int, int);
[C++] public: Control(String*, int, int, int, int);
[JScript] public function Control(String, int, int, int, int);

Initializes a new instance of the Control class as a child control, with specific text, size, and location.

[Visual Basic] Public Sub New(Control, String, Integer, Integer, Integer, Integer)
[C#] public Control(Control, string, int, int, int, int);
[C++] public: Control(Control*, String*, int, int, int, int);
[JScript] public function Control(Control, String, int, int, int, int);

See Also

Control Class | Control Members | System.Windows.Forms Namespace

Show: