|
I just started learning C # and want to know the common events of a group of radio buttons,
E.g:
There are three radio buttons rbNone, rbSingle and rbFixed3D
The code added in this way has no effect. Is there anything else to be set in a file?
Please masters to tell my brother
private void ChangeSplitterBorderStyle (object sender, EventArgs e)
{
if (rbNone.Checked == true)
splitter1.BorderStyle = System.Windows.Forms.BorderStyle.None;
else if (rbSingle.Checked == true)
splitter1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
else if (rbFixed3D.Checked == true)
splitter1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
} |
|