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