System.Windows.Forms.CreateParams Class

Encapsulates the information needed when creating a control.

See Also: CreateParams Members


public class CreateParams


The information in a System.Windows.Forms.CreateParams can be used to pass information about the initial state and appearance of a control. Most System.Windows.Forms.Control derived controls override the Control.CreateParams property to pass in the appropriate values or include additional information in the System.Windows.Forms.CreateParams.

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 constants used to set the CreateParams.Style, CreateParams.ExStyle, and CreateParams.ClassStyle properties are defined in the Winuser.h header file. This file is installed by the Platform SDK or Visual Studio.


Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0,