Hi,
I want to rasie event on Esc key press i.e. Clear button event.
I am using vb.net window form. Could you please suggest how
can I achieve this functioanality.
Thanks
Raise event when press Esc key
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Aug 6, 2012, 7:39 AM EDT
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.cancelbutton.aspx
Areeb Quazi96 reputationPosted Aug 6, 2012, 11:35 PM EDT
VulpesRank #55 · 29.2K reputationPosted Aug 7, 2012, 1:19 AM EDT
However, it will cause whatever code is included in the ClearButton's Click eventhandler to execute. So, if you don't want the form to close you need to ensure that you have no code in that handler which will cause it to do so.