I have code to create a listbox and populate it, and would like the box to behave like it does when clicked, e.g. if you CLICK on "a" you see it blue and can press the down arrow to move down to "b". how do I achieve this programmatically?
Private Sub junkloader()
brandlist.Visible = True
brandlist.Items.Clear()
brandlist.Items.Add("a")
brandlist.Items.Add("b")
brandlist.Items.Add("c")
brandlist.Items(0).Selected = True
brandlist.Focus()
End Sub
this code SELECTS it properly, but I want to be able to navigate with the up and down arrows. how do I do this? thanks.
Private Sub junkloader()
brandlist.Visible = True
brandlist.Items.Clear()
brandlist.Items.Add("a")
brandlist.Items.Add("b")
brandlist.Items.Add("c")
brandlist.Items(0).Selected = True
brandlist.Focus()
End Sub
this code SELECTS it properly, but I want to be able to navigate with the up and down arrows. how do I do this? thanks.