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.
--
Dennis in Houston
"Dennis" wrote:
Further information:
When I use the space bar to toggle the checked box, it seems to work but If
I click on the item to make it checked, then I can't seem to uncheck it using
SetItemChecked method.
--
Dennis in Houston
"Dennis" wrote:
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.
--
Dennis in Houston