开发者

Visual C# questionon CheckedListBox control (VS2008)

I would like to force a CheckedListBox to have one or more of its boxes checked from within form load so the user sees some defau开发者_C百科lts checked when the app first loads.... I have tried the SetSelected method...this highlights the text of the selected box but doesn't show a tick. Any help gratefully recieved THanks Tony


Call the SetItemChecked method.


Use the SetItemChecked() method.

http://msdn.microsoft.com/en-us/library/system.windows.forms.checkedlistbox.setitemchecked.aspx


checkedListBox1.SetItemChecked(i, true);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜