CheckListBox selected item is cleared?

goodmorningsky

Centurion
Joined
Aug 18, 2003
Messages
172
I put TabControl on a Form, put checkListBox in one TabPane.
But, whenever I switch tab panes, the checked item are cleared!.
How can I keep the checked item?

Currently I keep it programmitically
(when tab is switched I save checked item and populate it back when the tab including checklistbox.. but, I don't think this is the way... CheckListBox must keep its status.. as I think..)
 
For me, the checks in the listbox are maintained when changing
tab pages. Are you creating the CheckedListBox control
dynamically on the tabpage, or are you re-populating it every time
the page is selected? Either of these scenarios would be cause
for the problem.
 
Back
Top