CreateParams Class
Collapse the table of content
Expand the table of content

CreateParams Class

Encapsulates the information needed when creating a control.

For a list of all members of this type, see CreateParams Members.


[Visual Basic]
Public Class CreateParams
public class CreateParams
public __gc class CreateParams
public class CreateParams

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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

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.

Note   The constants used to set the Style, ExStyle, and ClassStyle properties are defined in the Winuser.h header file. This file is installed by the Platform SDK or Visual Studio .NET.


Namespace: System.Windows.Forms

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

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

See Also

CreateParams Members | System.Windows.Forms Namespace | CreateParams

© 2015 Microsoft