Hi,
I have a combobox for US states in my code. I want the user to be able to select a state just by pressing keys.
For instance, if the user presses "N" key then the listindex of the combobox changes to "NC" (North Carolina).
Subsequent pressing of the "N" key should show
"ND", "NE", "NJ" ..and so on.
If the user presses the "A" key the combobox should show "AK" ,"AL" and so on.
I found a piece of API code (URL Given below) that seems to do something similar. It tries to show a choice from the combobox based on the keys typed in by the user.
However my comboboxes are not editable ie the style is set to dropdownlist. The search is based only on the key pressed...if the "N" key is pressed repeatedly..all the choices that start with "N" are shown in circular manner....if a different alphabet key is pressed all the choices from the combobox list starting with that alphabet are shown in a circular manner.
URL:
I'm not an API programmer and couldn't figure out how the above piece of code works.
Could anyone explain or show me the way to implement the above.
Thanks.
I have a combobox for US states in my code. I want the user to be able to select a state just by pressing keys.
For instance, if the user presses "N" key then the listindex of the combobox changes to "NC" (North Carolina).
Subsequent pressing of the "N" key should show
"ND", "NE", "NJ" ..and so on.
If the user presses the "A" key the combobox should show "AK" ,"AL" and so on.
I found a piece of API code (URL Given below) that seems to do something similar. It tries to show a choice from the combobox based on the keys typed in by the user.
However my comboboxes are not editable ie the style is set to dropdownlist. The search is based only on the key pressed...if the "N" key is pressed repeatedly..all the choices that start with "N" are shown in circular manner....if a different alphabet key is pressed all the choices from the combobox list starting with that alphabet are shown in a circular manner.
URL:
I'm not an API programmer and couldn't figure out how the above piece of code works.
Could anyone explain or show me the way to implement the above.
Thanks.