Rss & SiteMap

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

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

标题:遍历控件问题我要遍历GroupBox1中的所有ColorPicker求代码修改

1楼
李小胖 发表于:2025/5/21 11:57:00
未找到类型“GroupBox”的公共成员“ColorPickers”。 
For Each ctrl As WinForm.ColorPicker In e.Form.Controls("GroupBox1").ColorPickers
    


    If TypeOf ctrl Is WinForm.ColorPicker Then
        Dim colorPicker As WinForm.ColorPicker = DirectCast(ctrl, WinForm.ColorPicker)
        If colorPicker.Text IsNot Nothing Then
            MessageBox.Show(colorPicker.Text)
        End If
    End If
Next
2楼
有点蓝 发表于:2025/5/21 11:59:00
For Each ctrl As WinForm.Control In e.Form.Controls("GroupBox1").Children

http://www.foxtable.com/webhelp/topics/1849.htm

http://www.foxtable.com/webhelp/topics/2414.htm
共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.