Parintas Themis STE Kardias wrote:
How can i select the first row in a list box, after pressing the TAB key
I put into the OnGetFocus
If Me.ListBox.ListIndex = -1 Then Me.ListBox.Selected(0) = True
and that works. If you use column heading enter
If Me.ListBox.ListIndex = -1 Then Me.ListBox.Selected(1) = True
The reason I check for the value of ListIndex is that if I return to the
listbox I don't want to change back from a prior setting made by the user.