Handke keypress - keydown event Label Control

P

Peter Verburgh

Is there an easy way to capture the keypress - keydown events from a LABEL
control ?
Standard the control doesn't handle these events.
The label control inherits from the control class , and this class has the
keypress - keydown event handlers. So i believe this must be possible ?

k/Regards,
 
R

Roy Osherove

Is there an easy way to capture the keypress - keydown events from a LABEL
control ?
Standard the control doesn't handle these events.
The label control inherits from the control class , and this class has the
keypress - keydown event handlers. So i believe this must be possible ?

k/Regards,

override COntrol.ProcessDialogKey()
 
P

Peter Verburgh

It doens't work,

i've a Custom label control that inherit
public class ClsCMPLabel : System.Windows.Forms.Label

in this inherited class i want to capture the keyDown & Keypress events .

Could someone give me a example howto do this ?

greetings,

PeteR.
 
P

Peter Verburgh

Ok , thx , i've found it

Peter Verburgh said:
It doens't work,

i've a Custom label control that inherit
public class ClsCMPLabel : System.Windows.Forms.Label

in this inherited class i want to capture the keyDown & Keypress events .

Could someone give me a example howto do this ?

greetings,

PeteR.
 

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