G
Guest
GridView KeyDown Event
This code works fine if the Form is NOT an MDI Child:
If e.KeyCode = Keys.V AndAlso e.Control = True Then
'ProcessPaste()
End If
If the Form is an MDI Child then event fires when the CTRL key is pressed
but does not fire when the 'V' key is pressed. However when I release the
keys the KeyUp event fires for the 'V' key first and then for the CTRL key.
I've tried setting both the MDI Child and the Parent's KeyPreview to TRUE
and capturing there but with the same results.
Any ideas?
This code works fine if the Form is NOT an MDI Child:
If e.KeyCode = Keys.V AndAlso e.Control = True Then
'ProcessPaste()
End If
If the Form is an MDI Child then event fires when the CTRL key is pressed
but does not fire when the 'V' key is pressed. However when I release the
keys the KeyUp event fires for the 'V' key first and then for the CTRL key.
I've tried setting both the MDI Child and the Parent's KeyPreview to TRUE
and capturing there but with the same results.
Any ideas?