Using keys to gain access to combo boxes

  • Thread starter Thread starter IT
  • Start date Start date
I

IT

Hello,

How is it possible to allow a user to simply select the down arrow when the
focus is in a combobox to display its contents. I can do this at present by
pressing alt and then the down arrow but ideally would like to just press
the down arrow key.

Cheers
 
Hello,

How is it possible to allow a user to simply select the down arrow when the
focus is in a combobox to display its contents. I can do this at present by
pressing alt and then the down arrow but ideally would like to just press
the down arrow key.

Cheers

You can set the Form's KeyPreview property to Yes and then put code in
the combo box's KeyDown event. As a rule, I prefer to use the
Autocomplete property of combos anyway. If you tab into the combo box
and type the first two or three letters of its first visible column,
the combo will navigate to the first record with those values. Will
this help in your case?
 
Use combobox 's dropdwon method.

When combobox (for example named Combo5) got focus,you can script code like
those below:

Private Sub Combo5_GotFocus()

Combo5.Dropdown

End Sub
 
Back
Top