selecting multiple items in a listbox

rockwell

Active member
Joined
Dec 6, 2005
Messages
36
Programming Experience
Beginner
Hello all, im really not sure how to select multiple items in a listbox. I have searched about this but couldnt find anything which helps me. Can anyone please help me how to select multiple items in a listbox and store them in an array.

Thanks in advance
 
Ok say you want to select all items of certain listbox.
VB.NET:
Expand Collapse Copy
[SIZE=2][COLOR=#0000ff]For[/COLOR][/SIZE][SIZE=2] i [/SIZE][SIZE=2][COLOR=#0000ff]As [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE][SIZE=2] = 0 [/SIZE][SIZE=2][COLOR=#0000ff]To [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].ListBox1.Items.Count - 1
[/SIZE][SIZE=2][COLOR=#0000ff]    Me[/COLOR][/SIZE][SIZE=2].ListBox1.SetSelected(i, [/SIZE][SIZE=2][COLOR=#0000ff]True[/COLOR][/SIZE][SIZE=2])
[/SIZE][SIZE=2][COLOR=#0000ff]Next[/COLOR][/SIZE]
HTH
Regards ;)
 
Graying out a combo box item

Hi thanks for your reply, i got it working before i got your reply, anyways thank you very much.

I have one question to ask, how can we gray out a particular item in a combo box, that is disable it.

any suggestions .............
 
Back
Top