JiriNovotny
asked on
VB.NET: ListView KeyDown doesn't recognize the Enter(Return) key
I have a form with a listview in VB.NET, the ListView is focused and the form property KeyPreview is set to true. No matter what, the Enter key is never recognized in the listviews KeyDown event. How to fix that?
Private Sub lvListView_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles lvListView.click
If e.KeyCode = Keys.Enter Then
Debug.Print("ENTER!!!") 'Never happens
End If
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER