
Originally Posted by
RJ1969
1. I can double click it and I can use a down arrow then press enter.
2. I have a textbox1 where I type "app" for applesauce
3. and it will filter whatever that has "app" from the listbox1
4. but when I press tab it does not highlight the item when I tab it.
To 2. and 3.
a) simply typing any text in 'textbox' does not filter 'listboxes', you must have suitable code
To 4.
a) if you have one, then if you type something in 'textbox' and the list in 'listbox' will be filtered, what should be highlighted there ?
b) if in 'textbox' you have typed e.g. "appl" and on the filtered list you have: "applesauce", "application", "apple", etc. and you press tab key, how does code know that what you want to highlight ... "appl" <==> "applesauce", "application", "apple" ?
Please provide your sample file.
Additionally:
1. "If KeyCode = 13" <==> if you press enter
2. "ListBox1.ListIndex - 1" <==> "ListBox1.ListIndex" it is a number, Long type, if equal "3" then "ListBox1.ListIndex - 1" = "2", and "2" is always TRUE. This is needless/superfluous in this place.
Should be
Sorry for bad english
And yet sample code to filtering the list from field 'textbox':
Bookmarks