NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Control.SetStyle

Sets the current value of the specified bit in the control's style. NOTE: This is control style, not the Win32 style of the hwnd.

[Visual Basic]
Protected Sub SetStyle( _
   ByVal flag As ControlStyles, _
   ByVal value As Boolean _
)
[C#]
protected void SetStyle(
   ControlStyles flag,
   bool value
);
[C++]
protected: void SetStyle(
   ControlStyles flag,
   bool value
);
[JScript]
protected function SetStyle(
   flag : ControlStyles,
   value : Boolean
);

Parameters

flag
Bit to set.
value
Value to use in setting the bit.

See Also

Control Class | Control Members | System.WinForms Namespace