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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top