Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,
I have a calculator, on which there are many buttons. When press a button (e.g. 1)and then press the enter key, the enter key presses the same button. So how can I prevent the enter key pressing a previously pressed button on the calculator when I press the enter key?
Thanks in advance.
Posted

1 solution

The [Enter] key will hit the button in focus, so after press any button you should move the focus to some other place...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900