<span style="font-size:18px;">this.radioButton1.Click += new System.EventHandler(this.radioButton1_Click);
private void radioButton1_Click(object sender, EventArgs e)
{
// 摘要:
// 获取或设置一个值,它指示:在单击控件时,System.Windows.Forms.RadioButton.Checked 值和控件的外观是否自动更改。
//
// 返回结果:
// 如果在发生 System.Windows.Forms.Control.Click 事件时自动更改 System.Windows.Forms.RadioButton.Checked
// 值和控件的外观,则为 true;否则为 false。默认为 true。
<span style="color:#FF0000;">radioButton1.AutoCheck = false; //如果设为true,就会调用默认Click事件,单击选中,
//设置</span></span><span style="font-size:18px;color:#FF0000;">radioButton1.Checked = true</span><span style="font-size:18px;color:#FF0000;"></s
C# radionButton单击一下选中,再次单击取消选中(源码)
最新推荐文章于 2024-07-10 10:02:20 发布