我有一个包含 2 个组框的表单,每个组框都包含一个单选按钮调用 radioButton1(选项卡索引:0)和 radioButton2(选项卡索引:1)。
在第一次运行时,radioButton1会被选中而另一个没有,当我在键盘上按Tab键时,焦点会跳转到radiobutton(见上图,真的很好),但是当我选中radiobButton2然后按Tab键时,焦点没有跳转到radioButton1,这是为什么呢?这是我检查radioButton2时的方法:
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
radioButton1.Checked = false;
}