Add KeyDown (KeyUp) event to LinkedLabel

B

be3kon

I need KeyDown event in LinkedLabel, is there any possibility to extend
this control? I have try create LinkedLabelEx in UserControl but it
doesn't work. The events doesn't fired from UserControl when focus is on
LinkedLabel.

Any suggestions?

Thanks, George.
 
B

be3kon

be3kon pisze:
I need KeyDown event in LinkedLabel, is there any possibility to extend
this control? I have try create LinkedLabelEx in UserControl but it
doesn't work. The events doesn't fired from UserControl when focus is on
LinkedLabel.

Any suggestions?

Thanks, George.

This is solution:
public class LinkLabelEx : LinkLabel
{
protected override void OnKeyDown(KeyEventArgs e)
{
base.OnKeyDown(e);
//emit event etc...
}
}

Thanks anyway.
 

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