Hi, I'm new to C#, and doing a simple calculator application, it's completed now and calculates well, i wanna provide the interface with hotkeys so when the user press a number lets say "1" on the keyboard gets displayed on the textbox, and activate operators when he press em, just like windows xp calculator.
am using textBox1.Text += ((Button)sender ).Text; to display numbers when clicked by the mouse btw.
How to do it?, i've searched and found i should use keypress event, however i couldn't get it applied.
Thanks,
AhmedGY
am using textBox1.Text += ((Button)sender ).Text; to display numbers when clicked by the mouse btw.
How to do it?, i've searched and found i should use keypress event, however i couldn't get it applied.
Thanks,
AhmedGY
Comment