CreateParams.Style Property

 

Gets or sets a bitwise combination of window style values.

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

member Style : int with get, set

Property Value

Type: System.Int32

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.

System_CAPS_noteNote

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.

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: