Hi,
I have a form with two list boxes: one on the left and one of the right.
The list box on the right side always has data. The one on the left doesn't always have data.
Situation 1: List Box on left side has no data.
I click the right List Box (the Got Focus event is triggered). I type a letter and the List Box scrolls to the first item starting with that letter.
Situation 2: List Box on left side has data.
I click the right List Box (the Got Focus event is triggered). In this situation the Lost Focus event is also triggered. I type a letter BUT the left List Box scrolls to the first item starting with that letter.
My question is: Why does the List Box on the right side trigger the Lost Focus event when there is data in the List Box on the left side of the form and why does that same List Box get the focus?
If a user selects the List Box on the right side then I need it to retain the focus until the user selects something else.
Thanks,
- Bruce
I have a form with two list boxes: one on the left and one of the right.
The list box on the right side always has data. The one on the left doesn't always have data.
Situation 1: List Box on left side has no data.
I click the right List Box (the Got Focus event is triggered). I type a letter and the List Box scrolls to the first item starting with that letter.
Situation 2: List Box on left side has data.
I click the right List Box (the Got Focus event is triggered). In this situation the Lost Focus event is also triggered. I type a letter BUT the left List Box scrolls to the first item starting with that letter.
My question is: Why does the List Box on the right side trigger the Lost Focus event when there is data in the List Box on the left side of the form and why does that same List Box get the focus?
If a user selects the List Box on the right side then I need it to retain the focus until the user selects something else.
Thanks,
- Bruce