Select listbox on using scroll bar

lucyLocket

Registered User.
Local time
Yesterday, 18:14
Joined
Dec 24, 2007
Messages
15
Hi

There is probably a simple solution to this question but I have been going round in circles - with no solution yet.

I have a scrolling listbox pre-populated with numbers 1 to 10 - it is single select.

How do I highlight it (it is the one with the up and down arrows on the right) automatically on using the scroll bars?

Thanks
 
how do you highlight what exactly?
 
Hi

I have found that the user forgets to highlight/select the value they have chosen in the listbox after scrolling up and down to find a particular number, and then clicks to go to the next form (carrying no values from the list box). I was wanting to keep selected, the current value showing in the listbox because when you scroll, you loose selection - you have to click on the value again to select it - and the user forgets to do this.

Is it possible to keep each current value showing in listbox selected?

The problem is that it is quite possible that the user doesn't want to select any values at all - in which case that is fine, but if they do - and forget to highlight/select the value, then no values are passing across. If they don't, and the value 0 is automatically selected (being the current value in the listbox as mentioned above), then that would be ok anyway - as no values would be carried across.

Thanks
 
the simplest approach would probably be to check if a value is selected when the user tries to move and show a msgbox saying either "no value is selected, is this what you want?" or "value x is selected, is this what you want?" and offer yes or no as options. no returns them to the form and yes lets them continue.
 
It is a shame though that when using the scroll, that it doesn't select at the same time.
 
give them a combo box instead of a list box - the usage of a combo box is perhaps easier to understand
 

Users who are viewing this thread

Back
Top Bottom