On Apr 21, 12:01 am, "John" <i...@nospam.in fovis.co.ukwrot e:
Hi
>
How can I capture control keys Ctrl-A, Ctrl-B, Ctrl-C etc. in a form?
>
Thanks
>
Regards
John,
First set keypreview property of your form to "True", then:
Private Sub Form1_keydown(B yVal sender As System.Object, ByVal e As
System.Windows. Forms.KeyEventA rgs) Handles MyBase.KeyDown
If e.KeyData = Keys.Control + Keys.A Then
MsgBox("Ctrl+A pressed")
ElseIf e.KeyData = Keys.Control + Keys.B Then
MsgBox("Ctrl+B pressed")
ElseIf e.KeyData = Keys.Control + Keys.C Then
MsgBox("Ctrl+C pressed")
End If
Comment