Checkedlistbox set checked items during initialisation

L

Laurent GAYE

How can I check items before parent's form initialize ?

i do that in on_form_load events (AFTER checkedlistbox databind):

//Checked list default selection
for( int i=0 ; i < checkedListBox1.Items.Count; i++ )
{
checkedListBox1.SetItemChecked(i, true);
}

this code works fine if I launch it on checkedlist_double_click events.

Can u help me ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top