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);
精彩评论