473,326 Members | 2,111 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,326 software developers and data experts.

Checked ListBox - VB.Net 2003

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
Nov 21 '05 #1
1 6990
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

Nov 21 '05 #2

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

Similar topics

5
by: Brian | last post by:
Hi, All, I'm using MS.net 2003 and using a windows.forms.listbox control for my window application but I don't know why the Horizontal Scrollbar could NOT be shown even if I set...
3
by: Alan Lane | last post by:
Hello world: I have a Parent form with a combobox, where the user selects a Contract or Estimate number. Then, on a subform, I have a listbox that gets filled with the details of the selected...
2
by: JoeHenrich | last post by:
I am using VS.NET 2003 and am having an interesting issue with a Listbox control. Essentially, I have a form with a listbox on it. In the listbox doubleclick event I would like to do some...
3
by: Hrvoje Voda | last post by:
After I fill checked listbox with data, I would like to checked all items in list ? Hrcko
1
by: Hrvoje Voda | last post by:
I fill a checked listBox with data from dataset. I would like, when a user checked one item , to save it in dataset. The problem is that I don't know how to get its ID number, because I have...
3
by: Hrvoje Voda | last post by:
I fill a checked listbox with name from dataset. I would like to go through that names and if I find the same name in list, then that line should be checked. How? Hrcko
3
by: touf | last post by:
Hi, I've post this problem for few days, and I still have it, please give me any idea. I've a Tabcontrol with many tabpages, in each one I've a checked listBox. The problem is that when I check...
3
by: Dean Slindee | last post by:
In a checked listbox, I am allowing drag/drop of the items within (resequencing). Problem is, when dropping a checked item, the checked state always reverts to unchecked (unwanted). Anyone know...
10
by: dm1608 | last post by:
Hi, all. I have a requirement for one of my programs to have a "Checked Listbox" that contains a list of all my local/remote drives. I woudl like users to click one or more drives that I need...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.