Foxtable(狐表)用户栏目专家坐堂 → 遍历控件问题我要遍历GroupBox1中的所有ColorPicker求代码修改


  共有13人关注过本帖树形打印复制链接

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

帅哥哟,离线,有人找我吗?
李小胖
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小狐 帖子:312 积分:2684 威望:0 精华:0 注册:2017/1/8 15:53:00
遍历控件问题我要遍历GroupBox1中的所有ColorPicker求代码修改  发帖心情 Post By: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楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:113936 积分:580301 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2025/5/21 11:59:00 [只看该作者]

For Each ctrl As WinForm.Control In e.Form.Controls("GroupBox1").Children



 回到顶部