PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Checkedlistbox set checked items during initialisation

Reply

Checkedlistbox set checked items during initialisation

 
Thread Tools Rate Thread
Old 25-06-2003, 09:09 AM   #1
Laurent GAYE
Guest
 
Posts: n/a
Default Checkedlistbox set checked items during initialisation


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 ?
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off