array of listboxes.

Kieto
09-11-2001, 10:44 PM
I have an array of listboxes and I want to allow the user only to select one item from only one listbox at a time by double clicking on the item. I don't want to disable the other listboxes because then the user won't be able select from them. I can just add code in the click event but I want it to be a double click...any suggestions? THANKS IN ADVANCE.

'Pass the coffee over...'

dcl3500
09-11-2001, 10:49 PM
The listbox has a doubleclick event can't you use that?

Don

Time is the best teacher; unfortunately it kills all its students.

Kieto
09-11-2001, 11:04 PM
right...but I'm doing this just in case some idiot single clicks on one listbox...and then on another...then there will be two items selected. I don't want that.

'Pass the coffee over...'

Laurent
09-12-2001, 05:26 AM
you can try to keep a globar var in witch you keep the last item selected

I'll be among the best soon, very soon!!!

Banjo
09-12-2001, 06:33 AM
Alternatively, you could just set the Listindex property of each list box except the current one to -1.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum