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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using down arrow to open combo box list 1

Status
Not open for further replies.

shummy1

Technical User
Mar 17, 2005
22
CA
Need to find a way to have the combo box list open up as soon as a letter is typed into the combo box or when the user hits the down arrow key.

The contents of the combo box are loaded from a table with just the customer name.
 
You wouldn't be able to persuade your users to use Alt+DownArrow, which is a default shortcut?

Else, why not just use me!cboCombo.dropdown in a relevant event, for instance the gotfocus?

Roy-Vidar
 
I was trying to play around with that also but could not figure out the correct coe to put into the event.
I will try that out.. would that also work in the "on key down" field?
 
I suppose you could use the on change, or key down, but I'm a bit reluctant to doing so, cause it will keep invoking the dropdown per each keystroke, and I don't know if that causes any not desired sideffects.

Try it out, see what happens, and if you have side effects, try using a variable with form level scope, set it to 0 in the on enter/gotfocus event of the combo, then per each keydown/on change, increment by one, but only do a dropdown when it's 0 (before the increment), or something like that;-)

Roy-Vidar
 
That worked perfectly on the got focus option. Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top