Quicker way to select all items in a list box 
Author Message
 Quicker way to select all items in a list box

Does anyone know of a quicker way to select all the items in a multi-select
list box?

Example:

For lngX = 0 To Me!lstBox.listcount - 1
     Me!lstBox.Selected(lngX) = -1
Next lngX

The above code works, but not very well when the list is long (eg., > 500
items).  There has got to be a quicker way of doing this.

Thanks again.



Mon, 06 Aug 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. List Box - query selected item into table?

2. Select an item in list box with code

3. String value of selected item in list box

4. getting the selected item in a list box??

5. Removing multiple selected items from VB5 List Boxes

6. Removing selected items from VB5 List Boxes

7. Removing a Selected Item From List Box

8. re-hilite selected items in a list box after refresh

9. Select multiple items in list box

10. Please help,trying to put selected items from array into list box

11. please help,trying to put selected items from array into list box

12. I want selected item from list box to appear in grid

 

 
Powered by phpBB® Forum Software