Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check items in ListBox of style checkbox

Status
Not open for further replies.

nnzz

Programmer
Feb 26, 2001
8
0
0
ES
Can you programmatically check or uncheck the rows in a ListBox control with Style "checkbox"? how?

If not, what alternatives do you suggest if I have a BIG (they don't fit all at a time in screen) list of elements and I need to have some of them checked and some unchecked?

I've thought of a few text controls and implement a scroll system, but I think it's too difficult.

Thank you.
 
Try using the selected property of list box.

'check the first row of list box
listbox1.Selected(0) = True

'uncheck the first row of list box
listbox1.Selected(0) = False
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top