以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]遍历窗口控件如何获取控件Label的文本 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=152678) |
-- 作者:linswcfr -- 发布时间:2020/7/18 10:10:00 -- [求助]遍历窗口控件如何获取控件Label的文本 如题 |
-- 作者:有点蓝 -- 发布时间:2020/7/18 10:25:00 -- For Each c As WinForm.Control In e.Form.Controls If Typeof c Is WinForm.Label Then Dim t As WinForm.Label = c msgbox(t.text) End If Next [此贴子已经被作者于2020/7/18 10:25:20编辑过]
|