Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]遍历被选中的复选框

1楼
jjjeyes 发表于:2024/4/11 13:50:00
For Each c As Winform.Control In e.Form.Controls("GroupBox1").children
    If TypeOf c Is winform.CheckBox Then
        MessageBox.Show (c.Name)      
    End If 
Next

我想遍历已经选中的复选框,可是设置的变量下好像没有checked这个属性了,请问怎么解决
2楼
有点蓝 发表于:2024/4/11 13:55:00
For Each c As Winform.Control In e.Form.Controls("GroupBox1").children
    If TypeOf c Is winform.CheckBox Then
dim a as winform.CheckBox = c
        MessageBox.Show (a.Name & "-" & a.checked)      
    End If 
Next
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01953 s, 2 queries.