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.
"Roy Osherove" <ro**@iserializable.com> schreef in bericht
news:1w*******************************@40tude.net. ..
On Mon, 10 Nov 2003 12:41:44 +0100, Peter Verburgh wrote:
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()
--
Roy Osherove
weblog: http://www.iserializable.com