I'm trying to select items from the listbox when pressing Enter on the selected item. Here is what I have tried so far:
Private Sub ListBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ListBox1.KeyDown
Select Case e.KeyCode
Case Keys.Enter
ListBox1.SelectedItem = ListBox1.PerformMouseClick()
End Select
End Sub