Hi,
Set the form keypreview to true if you want to catch esc no matter
what control has the focus.
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.Escape Then
MessageBox.Show("Escape")
End If
End Sub
Ken
---------------------
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:eG**************@TK2MSFTNGP10.phx.gbl...
Hi
How can I capture Esc key on my form?
Thanks
Regards