J
jmd.msdn
Hello.
I want to trap the KeyDown key on a form.
What I do :
1. Create a Windows Forms C# Project
2. Add a KeyDown event for the form
Add a MessageBox.Show("KeyDown hitted"); in this event.
3. Run the program
With the above, each time I press a key, ANY key (also any of the arrow
keys), the MessageBox fire correctly.
Now the problem :
1. Add a Button on the form (with or without a Click event)
2. Run the program
This time, the form's KeyDown event is fired for keys, EXCEPT THE ARROW KEYS
!!!
Is this normal ?
What must I do to solve that ?
Thank you.
jean-marie
I want to trap the KeyDown key on a form.
What I do :
1. Create a Windows Forms C# Project
2. Add a KeyDown event for the form
Add a MessageBox.Show("KeyDown hitted"); in this event.
3. Run the program
With the above, each time I press a key, ANY key (also any of the arrow
keys), the MessageBox fire correctly.
Now the problem :
1. Add a Button on the form (with or without a Click event)
2. Run the program
This time, the form's KeyDown event is fired for keys, EXCEPT THE ARROW KEYS
!!!
Is this normal ?
What must I do to solve that ?
Thank you.
jean-marie