List Box and Check Box
First off, thank you for letting me join VB.Net. It's been sometime since I program last in it. Now on to my questions. I would like to know if Microsoft is going to do something about VB6 running on Vista 64, as my next computer is going to have it. Don't like it, but what can I do right? My coding problem is, I have some numbers on the side with a list box on the other side. The listbox is filled with numbers (some different and same). If I choose (check) a number on the left side, how can I get the listbox to highlight all the numbers that I check? Thanks.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Dushan Stankovic72 reputationPosted Oct 2, 2009, 11:24 AM EDT
Create event handler for CheckBox CheckedChanged event.
//Check if CheckBox checked == true //Iterate through collection ListBox.Items and find your number you want to select in listBox //when you find you number set ListBox.SelectedIndex = index of your number ( = listBox1.Items.IndexOf(item))and that is that. If you need more help I will try to help you but is better to go at VB forum.