how to CATCH arrow key in C#

kante

Member
Joined
Jan 16, 2003
Messages
13
i use

this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress);

and then

private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{ MessageBox.Show("" + e.KeyChar);}

to catch the every key press in my form....


but why it doesnt work with arrow keys?
how can i arrange it to catch all keyboard keys?

thank you!
 
Back
Top