This documentation is archived and is not being maintained.

CreateParams.Style Property

Gets or sets a bitwise combination of window style values.

[Visual Basic]
Public Property Style As Integer
public int Style {get; set;}
public: __property int get_Style();
public: __property void set_Style(int);
public function get Style() : int;
public function set Style(int);

Property Value

A bitwise combination of the window style values.


The Style property controls the appearance of the control and its initial state.

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.


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

See Also

CreateParams Class | CreateParams Members | System.Windows.Forms Namespace | ExStyle | ClassStyle