473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

CheckedListBox Losing Checks

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!!
Nov 21 '05 #1
5 1392
Found an MSDN article telling me it's a bug....bummer.

http://support.microsoft.com/default...b;en-us;327896
"Brian Mitchell" <Ma********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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!!

Nov 21 '05 #2
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" <Ma********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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!!

Nov 21 '05 #3
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" <Ma********@hotmail.com> wrote in message
news:eZ**************@TK2MSFTNGP09.phx.gbl...
Found an MSDN article telling me it's a bug....bummer.

http://support.microsoft.com/default...b;en-us;327896
"Brian Mitchell" <Ma********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I have no idea what I am doing wrong, but I have a CheckedListBox (Bound toan IList) on a TabControl and everytime I switch tabs I lose my checks. Isthere something I'm missing? If I look at the properties of my IList classI 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 ListBoxdoesn't keep the checks.

Thanks for the help!!


Nov 21 '05 #4
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@sp*********@Yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP14.phx.gbl...
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" <Ma********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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!!


Nov 21 '05 #5
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" <Ma********@hotmail.com>
..
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@sp*********@Yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP14.phx.gbl...
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" <Ma********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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!!



Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matt C. | last post by:
Does the CheckedListBox support DisplayMember/ValueMember? I have been trying to use these properties with the CheckedListBox and they are not working. I see from Google that databinding is not...
2
by: CC | last post by:
Hi, We are populating a CheckedListBox from a database. Based on a selection by the user, the CheckedListBox either contains ALL possible members of a set, or a subset of possible members. The...
3
by: Steve Cutting | last post by:
Hi all, I have a CheckedListBox on one pane of a TabControl on a form. I find that whenever the user clicks a different tab then comes back, any checks that were in the list have disappeared. ...
2
by: Manuel Canas | last post by:
Hi there, I'm having this dilema with a checkedlistbox. I have an array of items in there, what I want to accomplish is the following; The user could check all the items in the...
0
by: Terry Olsen | last post by:
Dim dirs() as string = Directory.GetDirectories(MyPath) CheckedListBox.DataSource = dirs CheckedListBox.Update For I as Integer = 0 To CheckedListBox.Items.Count - 1...
6
by: Steve Teeples | last post by:
Can someone show me an example of how to place a "CheckedListBox" property within a PropertyGrid? -- ----------- Thanks, Steve
0
by: diego | last post by:
Greetings from the Philippines! I have a checkedlistbox contained in a tabpage of a tab control. i can programmatically check the items. i can see the items get checked when the tab page has...
5
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
2
by: zubair1 | last post by:
Hello, i'm in a bit of problem here :( I've been using Checkboxes on my app - but it has been horrible, since my app has alot of checkboxes - over 20-30. But i decided to use checkedlistbox...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.