Problem:
If you have a checked listbox how can you add items into the listbox and control their state?
Resolution:
You can add items to a CheckedListBox using code such as:-
invoke checkedListBox1::"Items"::"Add"("Item 2",cCheckState::"Checked")
invoke checkedListBox1::"Items"::"Add"("Item 3",cCheckState::"Unchecked")
invoke checkedListBox1::"Items"::"Add"("Item 4",cCheckState::"Checked")
invoke checkedListBox1::"Items"::"Add"("Item 5",cCheckState::"Unchecked")
cCheckState is the System.Windows.Forms.CheckState enumeration and allows you to control the state of the check when added.