Mohanad Kaleia

Idea for a cause

Key down event

Hello there..

If you want to execute a code when press a key, this code is what you want

// Handle the KeyDown event to determine the type of character entered into the control.
private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
   if (e.KeyCode ==Keys.Enter)
        // do some thing

Enjoy it...