以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 控件的标题 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=141976) |
-- 作者:qaz17909 -- 发布时间:2019/10/15 16:20:00 -- 控件的标题 For Each c As WinForm.Control In e.Form.Controls If Typeof c Is WinForm.Button Then MessageBox.show(c.Name) End If Next 在上面这段代码中,显示的是控件的名称,例如Button保存,我仅想显示控件的标题“保存”,却无法把c.Name改为c.Text
|
-- 作者:有点蓝 -- 发布时间:2019/10/15 16:28:00 -- For Each c As WinForm.Control In e.Form.Controls If Typeof c Is WinForm.Button Then Dim t As WinForm.Button = c \'使 MessageBox.show(t.Text ) End If Next
|