I am currently making a calculator application for my .NET class. The calculator works great when I use buttons. But when I use the keys on the keyboard, it does not work so well. For example, when I press the Enter key, I want the calculator to calculate the problem in the text box. Instead, click the button I last clicked, which causes problems. How can I prevent this?
I know this strange explanation, but I do not know how to explain it better.
source share