This is a migrated thread and some comments may be shown as answers.

Enter KeyDown only on column 1 or 2

0 Answers 43 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hengky
Top achievements
Rank 1
Veteran
Hengky asked on 10 May 2017, 03:32 AM

How to firing enter key only on column 1 or 2 ...

have this code ... 

    Private Sub GridList_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles GridList.KeyDown
        If e.KeyCode = Keys.Enter Then
                 Msgbox "Enter KeyPress" 

       End If

    End Sub

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Hengky
Top achievements
Rank 1
Veteran
Share this question
or