c# - Iterate through CheckedListBox in WinForms? -


If I checked the list box in the Win form which fills me like this

  List & lt; Work & gt; Function = db.GetAllTasks (); Forchach (various types of work) checklist item. Add (T.me.me);  

How can I reactivate tasks. Can you set some check boxes as box and check?

Thanks

If you want to do this after adding items, An example

has been copied here:

  Private Zero CheckEveryOther_Click (Object Sender, System.EventArgs E) {// cycle through each item and each other Check // Set this to true to know when this code is being executed. ItemCheck // is used in the event handler in. Other = true; (Int i = 0; i & lt; checked listbox 1. items.count; i ++) {// For each other item in the list, set as check if ((i% 2) == 0) {// But for a second item, which is to be checked, an // is set as being indefinitely checked state. If ((i% 4) == 0) checklist button 1 .set item template (i, checkstate indentinate); And checked checkbox 1 .Set item check (I, true); }} Inside = other false; }  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -