Panel KeyUp event

  • Thread starter Thread starter Peder Y
  • Start date Start date
P

Peder Y

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 -
 
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.
 
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
 
Back
Top