VB.NET default radio button selected inside a group box

前端 未结 8 788
醉话见心
醉话见心 2021-01-16 05:46

I have a WinForms application (VS 2008, .NET 3.5) that has a form with two different group boxes, and inside of each group box are different sets of radio buttons. When I r

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-16 06:34

    If your lowest Tab Index is a Radio Button, and you have AutoCheck set to True, then when the form loads and sets the active element to the lowest Tab Index, it acts as if you had clicked on the Radio Button, tripping the AutoCheck and therefore checking the Radio Button. Simply give another control on the form the Tab Index of 0.

提交回复
热议问题