Checked ListBox - VB.Net 2003

G

Guest

I have a checked list box and am trying to use the SetItemCheck method as
follows:

mylistbox.SetItemChecked(indextoset, True)

It seems to have no effect and the display does not show the box as checked.
I've tried SetItemCheckedState with the same results using
CheckState.Checked.

Is this a bug in the checked listbox? It's driving me nuts as I've spent
over 3 hours trying to get it right.
 
G

Guest

After many hours of trying different things, I've concluded the Checked
ListBox in VB.Net 2003 has a BUG regarding setting the items check
programmatically as follows:

If you use the up/down arrows to select different items in the list box, you
can set the item checked or unchecked programmatically and it works fine.
However, if you select an item with the mouse click, you cannot change the
items checked/unchecked property using SetCheckedState or SetIemChecked! It
won't work and it causes the whole screen to blink when trying it.
 

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