Hello! I would like to know how do i capture the key input by a user on a keyboard?


Private Sub btnVoid_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnVoid.Click
Dim rowIndex As Integer = DataGridView1.CurrentRow.Index

'if user press the enter key then
'Remove the the row from the datagridview1 represented by the rowIndex.


End Sub

Help is greatly appreciated.

Thanks!