Rss & SiteMap

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

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

标题:代码求助

1楼
bm 发表于:2011/11/6 21:55:00

Dim txtBox As WinForm.NumericComboBox
txtBox = e.Form.Controls("NumericComboBox1")
txtBox.ReadOnly = BooleanEnum.True

现在的情况是只有("NumericComboBox1")为只读,如果需要增加NumericComboBox2,NumericComboBox3。。。应该怎么改?

2楼
狐狸爸爸 发表于:2011/11/6 22:00:00

现在你才问到点子上了,代码:

 

For Each c As WinForm.Control In e.Form.Controls
    c.ReadOnly = BooleanEnum.True
Next

 

参考这个:

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

3楼
bm 发表于:2011/11/6 22:05:00
继续实习,谢谢狐爸了。
共3 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .04102 s, 2 queries.