dropdown list of a combobox help!

R

riccifs

Hi to everyone in the N.G.

I'am looking for a way to automatically cause the dropdown list of a
Combobox when a key is pressed but this key shuold be the first
character of the combo box entry. In other word, I 'd like to realize
this kind of effect:
when the user rich the combobox and start to typing, the list sholud
dropdown ''only'' if the item in the list is partially autocompleted,
(the first or the first two words).

At moment my code is at this point:

Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii > 31 Then
Screen.ActiveControl.Dropdown
End If
End Sub

How can I do that? I will great appreciate to everyone will give to me
an hand!
Thanks a lot,
Stefano.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top