R
RzB
I have an unbound list box on a form. When the
form opens I run the following code...
'Make sure list box is enabled
Me.lstSelector.Enabled = True
'Select the top item in the list box
Me.lstSelector = Me.lstSelector.ItemData(0)
'Ensure list box has focus
Me.lstSelector.SetFocus
My problem is that the up down arrow keys
do not function on the list box. If I click on
an item in the list box with the mouse it works
just fine. Furthermore, once I have clicked with
the mouse the up down keys operate correctly...
How do I get the keys to work without having
to do a mouse click first?
Many thanks,
Roy
form opens I run the following code...
'Make sure list box is enabled
Me.lstSelector.Enabled = True
'Select the top item in the list box
Me.lstSelector = Me.lstSelector.ItemData(0)
'Ensure list box has focus
Me.lstSelector.SetFocus
My problem is that the up down arrow keys
do not function on the list box. If I click on
an item in the list box with the mouse it works
just fine. Furthermore, once I have clicked with
the mouse the up down keys operate correctly...
How do I get the keys to work without having
to do a mouse click first?
Many thanks,
Roy