1) How can I make a Panel fire Key events?
Neither overriding the OnKeyUp event nor somePanel.KeyUp += new
KeyEventHandler(somePanel_KeyUp) seems to work.
2) What would be the procedure for doing this on a Control derived control?
Thanks!
- Peder -
Sean Hederman - 26 Feb 2005 21:45 GMT
The OnKeyUp method fires the event. You have to call it, not override it.
However it's protected so you can only do this if you inherit from the
control.
> 1) How can I make a Panel fire Key events?
>
[quoted text clipped - 7 lines]
>
> - Peder -
Matt Garven - 28 Feb 2005 00:42 GMT
Hi Peder,
Are you asking why the Panel doesn't fire the KeyUp event, or do you want to
raise the KeyUp event programmatically?
Regards,
Matt Garven
> 1) How can I make a Panel fire Key events?
>
[quoted text clipped - 6 lines]
>
> - Peder -