By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,949 Members | 2,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,949 IT Pros & Developers. It's quick & easy.

Handke keypress - keydown event Label Control

P: n/a
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,

Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
Nov 15 '05 #2

P: n/a
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

Nov 15 '05 #3

P: n/a
Ok , thx , i've found it

"Peter Verburgh" <pe*****@skynet.be> schreef in bericht
news:3f**********************@reader1.news.skynet. be...
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


Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.