There are several KeyPress method in my code. All are working except the one due to no reference. I have checked the project for naming mistake. But there is no any mistake. How can I make reference for this method.
btnback_KeyPress is not working.
Looks like you just don't have the event hooked up. Go into the designer, select the btnback
button, then in the Events tab of the Properties window, find the KeyPress
event and subscribe the btnback_KeyPress
method to it as a handler.
See more on this question at Stackoverflow