以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- Panel 面板背景色设置求助 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=142172) |
-- 作者:yifan3429 -- 发布时间:2019/10/20 11:05:00 -- Panel 面板背景色设置求助 \'窗体所有面板控件样式设置 For Each c As WinForm.Control In e.Form.Controls Dim t As WinForm.Panel = c \'使用特定类型的变量引用控件 t.BackColor = Color.Crimson \'设置控件背景颜色 Next
|
-- 作者:有点蓝 -- 发布时间:2019/10/20 22:30:00 -- 判断一下控件是不是WinForm.Panel 再赋值,看帮助是怎么判断控件类型的:http://www.foxtable.com/webhelp/topics/1849.htm |