Hi..
I have a form with one list box on it. (named List1)
I enter the following code in sub Form_load:
for x= 1 to 10
list1.additem x
next
list1.additem "Hello"
list1.additem "World"
list1.additem "How are you"
list1.additem "today?"
end sub
Now, when I run it, I can scroll through the items in the list box using up and down keys, but if I press key "1" on keyboard, it always goes back to the first item, which is a "1".
I need the listbox's cursor (list1.selected) to stay where it is, if I press key "1".
In other words, I want the listbox to ignore the keyboard "1" key.
I have form keypreview set to true.
Is there anyway to do this? If so, how?
Thanks!
I have a form with one list box on it. (named List1)
I enter the following code in sub Form_load:
for x= 1 to 10
list1.additem x
next
list1.additem "Hello"
list1.additem "World"
list1.additem "How are you"
list1.additem "today?"
end sub
Now, when I run it, I can scroll through the items in the list box using up and down keys, but if I press key "1" on keyboard, it always goes back to the first item, which is a "1".
I need the listbox's cursor (list1.selected) to stay where it is, if I press key "1".
In other words, I want the listbox to ignore the keyboard "1" key.
I have form keypreview set to true.
Is there anyway to do this? If so, how?
Thanks!