Hi, I want to make my datagrid column cells to accept short cut keys defined by myself.
I created a textbox control and I want to press F5 when the cell is selected my groupbox will be visible on the form.
Private Sub dbrDay_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If dbrDay.CurrentCell.ColumnNumber = 3 Then And e.KeyCode = Keys.F5 Then
e.Handled = True
grpVendor.Visible = True
Else
grpVendor.Visible = False
e.Handled = False
End If
End Sub
This doesnt work!
Thanks for your help
I created a textbox control and I want to press F5 when the cell is selected my groupbox will be visible on the form.
Private Sub dbrDay_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If dbrDay.CurrentCell.ColumnNumber = 3 Then And e.KeyCode = Keys.F5 Then
e.Handled = True
grpVendor.Visible = True
Else
grpVendor.Visible = False
e.Handled = False
End If
End Sub
This doesnt work!
Thanks for your help