Method SetStyle
SetStyle(ControlStyles, bool)
Sets a specified ControlStyles flag to either true or false.
protected void SetStyle(ControlStyles flag, bool value)
Parameters
flag
ControlStylesThe ControlStyles bit to set.
value
booltrue to apply the specified style to the control; otherwise, false.