Hello,
I have a ComboBox with just 2 items: North and South.
How can I select either item by just typing N or S (wether in capital or small letter?
Every time I do it I get an extra letter, i.e. nNorth or sSouth. I need to intercept the extra s or n.
Thank you
This is really a bad example but the following code in the TextChanged event will do it, assuming “North” is listed first.
If Me.value.length = 1 Then
If Me.Value.LowerCase = "n" Then Me.SelectedRowIndex = 0
If Me.Value.LowerCase = "s" Then Me.SelectedRowIndex = 1
End If
Why dont you use a PopupMenu instead ?
My mistake. It is a PopupMenu. The solution suggested by Dale, will it work?
Most probably you should use the KeyDown event of the PopupMenu