Panel KeyUp event

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 -
 
S

Sean Hederman

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.
 
G

Guest

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

Top