以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]如何通过代码判断groupbox中的rodiobutton的状态  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=109656)

--  作者:倪惠明
--  发布时间:2017/11/16 11:25:00
--  [求助]如何通过代码判断groupbox中的rodiobutton的状态
如题
--  作者:有点甜
--  发布时间:2017/11/16 12:05:00
--  

循环判断

 

For Each c As Object In e.form.Controls("groupBox1").Children

    If typeof c is Winform.RadioButton Then

        msgbox(c.name & " " & c.checked)

    End If

Next