PC Review


Reply
Thread Tools Rate Thread

CheckedListBox Losing Checks

 
 
Brian Mitchell
Guest
Posts: n/a
 
      27th Nov 2004
I have no idea what I am doing wrong, but I have a CheckedListBox (Bound to
an IList) on a TabControl and everytime I switch tabs I lose my checks. Is
there something I'm missing? If I look at the properties of my IList class I
can still see the properties have not changed (which means the items in the
box should still be chekced) it's just like for some reason the ListBox
doesn't keep the checks.

Thanks for the help!!


 
Reply With Quote
 
 
 
 
Brian Mitchell
Guest
Posts: n/a
 
      27th Nov 2004
Found an MSDN article telling me it's a bug....bummer.

http://support.microsoft.com/default...b;en-us;327896


"Brian Mitchell" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I have no idea what I am doing wrong, but I have a CheckedListBox (Bound to
>an IList) on a TabControl and everytime I switch tabs I lose my checks. Is
>there something I'm missing? If I look at the properties of my IList class
>I can still see the properties have not changed (which means the items in
>the box should still be chekced) it's just like for some reason the ListBox
>doesn't keep the checks.
>
> Thanks for the help!!
>
>



 
Reply With Quote
 
Gerald Hernandez
Guest
Posts: n/a
 
      27th Nov 2004
heh, this seems to be noticed in waves. seen this a few times in the last
couple days.
I ran into this a long time ago.
It appears that the TabControl is somehow preventing or causing the
CheckedListBox to not render correctly. The TabControl sometimes also seems
to affect other controls as well, but the CheckedListBox seems to be the
most affected.
I don't have a simple fix, and so far I have not come across a good
explanation or fix.
In my case, I really needed special behaviour, so I extended the
CheckedListBox control myself. So far I have not seen the same problem with
the version I'm using.

Maybe someone else has come across a solution by now?

Gerald

"Brian Mitchell" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I have no idea what I am doing wrong, but I have a CheckedListBox (Bound

to
> an IList) on a TabControl and everytime I switch tabs I lose my checks. Is
> there something I'm missing? If I look at the properties of my IList class

I
> can still see the properties have not changed (which means the items in

the
> box should still be chekced) it's just like for some reason the ListBox
> doesn't keep the checks.
>
> Thanks for the help!!
>
>



 
Reply With Quote
 
Gerald Hernandez
Guest
Posts: n/a
 
      27th Nov 2004
Ah, forgot about that article.
However, contrary to their comment about it only affecting Data Bound
CheckedListBoxes, in every situation it has happened to me, there was no
data binding involved.

Gerald

"Brian Mitchell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Found an MSDN article telling me it's a bug....bummer.
>
> http://support.microsoft.com/default...b;en-us;327896
>
>
> "Brian Mitchell" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> >I have no idea what I am doing wrong, but I have a CheckedListBox (Bound

to
> >an IList) on a TabControl and everytime I switch tabs I lose my checks.

Is
> >there something I'm missing? If I look at the properties of my IList

class
> >I can still see the properties have not changed (which means the items in
> >the box should still be chekced) it's just like for some reason the

ListBox
> >doesn't keep the checks.
> >
> > Thanks for the help!!
> >
> >

>
>



 
Reply With Quote
 
Brian Mitchell
Guest
Posts: n/a
 
      27th Nov 2004
Thanks for the reply, what I ended up doing is just iterating through my
datasource and manually populating the list with the objects. This seems to
work....at least for now.


"Gerald Hernandez" <Cablewizard@(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> heh, this seems to be noticed in waves. seen this a few times in the last
> couple days.
> I ran into this a long time ago.
> It appears that the TabControl is somehow preventing or causing the
> CheckedListBox to not render correctly. The TabControl sometimes also
> seems
> to affect other controls as well, but the CheckedListBox seems to be the
> most affected.
> I don't have a simple fix, and so far I have not come across a good
> explanation or fix.
> In my case, I really needed special behaviour, so I extended the
> CheckedListBox control myself. So far I have not seen the same problem
> with
> the version I'm using.
>
> Maybe someone else has come across a solution by now?
>
> Gerald
>
> "Brian Mitchell" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> I have no idea what I am doing wrong, but I have a CheckedListBox (Bound

> to
>> an IList) on a TabControl and everytime I switch tabs I lose my checks.
>> Is
>> there something I'm missing? If I look at the properties of my IList
>> class

> I
>> can still see the properties have not changed (which means the items in

> the
>> box should still be chekced) it's just like for some reason the ListBox
>> doesn't keep the checks.
>>
>> Thanks for the help!!
>>
>>

>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      27th Nov 2004
Brian,

I am not sure of this, however I thought that the Ilist binding was a one
way binding, only setting of the control and not the other way.

Cor

"Brian Mitchell" <(E-Mail Removed)>
..
> Thanks for the reply, what I ended up doing is just iterating through my
> datasource and manually populating the list with the objects. This seems
> to work....at least for now.
>
>
> "Gerald Hernandez" <Cablewizard@(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> heh, this seems to be noticed in waves. seen this a few times in the last
>> couple days.
>> I ran into this a long time ago.
>> It appears that the TabControl is somehow preventing or causing the
>> CheckedListBox to not render correctly. The TabControl sometimes also
>> seems
>> to affect other controls as well, but the CheckedListBox seems to be the
>> most affected.
>> I don't have a simple fix, and so far I have not come across a good
>> explanation or fix.
>> In my case, I really needed special behaviour, so I extended the
>> CheckedListBox control myself. So far I have not seen the same problem
>> with
>> the version I'm using.
>>
>> Maybe someone else has come across a solution by now?
>>
>> Gerald
>>
>> "Brian Mitchell" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> I have no idea what I am doing wrong, but I have a CheckedListBox (Bound

>> to
>>> an IList) on a TabControl and everytime I switch tabs I lose my checks.
>>> Is
>>> there something I'm missing? If I look at the properties of my IList
>>> class

>> I
>>> can still see the properties have not changed (which means the items in

>> the
>>> box should still be chekced) it's just like for some reason the ListBox
>>> doesn't keep the checks.
>>>
>>> Thanks for the help!!
>>>
>>>

>>
>>

>
>



 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XP pro: chkdsk checks D drive, finds no errors, but then checks it again at next boot RE Windows XP General 0 31st Aug 2006 02:00 AM
CheckedListBox Ferdinand Zaubzer Microsoft C# .NET 1 16th Jan 2006 04:22 PM
programmatically setting checks in CheckedListBox David C Microsoft Dot NET Framework Forms 3 6th Oct 2004 02:35 PM
CheckedListBox Vann Microsoft VB .NET 3 29th Sep 2004 03:53 PM
CheckedListbox by value kifaro Microsoft VB .NET 0 19th May 2004 05:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:13 PM.