以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  CheckedListBox选中问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=52739)

--  作者:袁冬
--  发布时间:2014/6/22 0:02:00
--  CheckedListBox选中问题
请问各位怎样用一个按钮全部选中CheckedListBox的所有项目啊?我研究了一晚上了,求帮助!!
--  作者:lindong
--  发布时间:2014/6/22 1:05:00
--  
按妞代码
Dim a As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox1")
For i As Integer = 0 To a.Items.Count - 1
            a.SetItemChecked(i, True)
Next