Encapsulates the information needed when creating a control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Gets or sets the control's initial text.
Gets or sets the name of the Windows class to derive the control from.
Gets or sets a bitwise combination of class style values.
Gets or sets a bitwise combination of extended window style values.
Gets or sets the initial height of the control.
Gets or sets additional parameter information needed to create the control.
Gets or sets the control's parent.
Gets or sets a bitwise combination of window style values.
Gets or sets the initial width of the control.
Gets or sets the initial left position of the control.
Gets or sets the top position of the initial location of the control.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Overrides Object.ToString().)
For more information about creating control parameters, see the CreateWindow and CreateWindowEx functions and the CREATESTRUCT structure documentation in the Windows Platform SDK reference located in the MSDN Library.
The following code example creates a Button derived class named MyIconButton and provides the implementation needed for the button to display an Icon rather than an Image. The CreateParams property is extended and a value added to the Style property that causes the button to display an Icon rather than an Image.
The following code example creates an instance of a standard Button control and an instance of the derived control, MyIconButton, created in the example above. This example requires that there is an Icon file named Default.ico in the same location as the application. When the application starts, the Default icon is displayed on the MyIconButton button. If the Default icon is not present, the button face is blank. When the standard Button is clicked, an OpenFileDialog box will appear so you can select a new Icon to display on the MyIconButton.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.