I've written a simple application. It consists of main window, menu and a
label. I added event handler to the main form (KeyDown), so when I push a
key on the keyboard, then it's key code should be displayed using a label
(label.Text = e.KeyCode). It works fine with "A", "B" etc. but when I press
left arrow, up arrow etc, the main menu popups and KeyDown event is not
handled.
What should I do ?
PS. I use .NetFramework 2.0 Beta2. In .NetFramework 1.1 there wasn't such
problem.
Emil.
Rob Lans - 12 May 2005 13:38 GMT
Try overriding the ProcessCmdKey method of the main form.
Rob.
> I've written a simple application. It consists of main window, menu and a
> label. I added event handler to the main form (KeyDown), so when I push a
[quoted text clipped - 7 lines]
>
> Emil.