chris81 said:
James Daughtry a formulé la demande :
one complete example please because i don't understand....
thx
That was a complete example. Presumably you know how to write a KeyDown
even handler, so the only unfamiliar part is the single line I gave
you:
Private Sub dataGridView1_EditingControlShowing(ByVal sender As
Object, ByVal e As DataGridViewEditingControlShowingEventArgs) Handles
dgCompositionFormule.EditingControlShowing
dgCompositionFormule.EditingControl.KeyDown += CellKeyDown
End Sub
Private Sub CellKeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs)
' Whatever you want to do when the key is down here
End Sub