Handling Keypress events question
0.
100. +
400. =
500. *
100. =
50,000.
I am attempting to make it so that when i hit a function key it will perform an action and jump to the next line. Currently, I am unable to get my textbox to recognize any keyboard events. I placed this eventhandler into the InitializeComponent() contstructer in form1.design.cs.
this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.form1_keyPress);
I then have
private void form1_keyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if (e.KeyChar == 'e')
{
e.Handled = true;
}
}
in form1.cs
I put this in there just to test to see if when i hit the e character it will recognize that i'm doing that and it wont show up in the text box so i can add functionality to certain keys to perform certain mathematical operations. How do I get it to recognize certain keys?

