一、在Winform中

设计时,将RadioButton的Checked属性设置为True

c#单选框怎么设置默认选中?

 

或者在代码中将Radiobutton.Checked 设置为true。例如,

// 加载窗体时
private void Form1_Load(object sender, EventArgs e)
{
    radioButton1.Checked = true;
}

二、在ASP.NET 页面中,设置方法与上述过程类似

相关文章:

  • 2021-11-22
  • 2021-11-11
  • 2022-01-03
  • 2021-12-14
  • 2021-11-22
  • 2021-11-22
  • 2021-12-10
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-11-20
相关资源
相似解决方案