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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 6, 2012, 11:39 AM
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.cancelbutton.aspx
VulpesPosted Aug 7, 2012, 5:19 AM
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.
Areeb QuaziPosted Aug 7, 2012, 3:35 AM