Handke keypress - keydown event Label Control

  • Thread starter Thread starter Peter Verburgh
  • Start date Start date
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,
 
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()
 
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.
 
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.
 
Back
Top