MouseDown Event for Label

T

Timo Meier

How can I add a Mouse down event for a label?

I tried the following but nothing happens:

this.label1.MouseDown += new MouseEventHandler(label1_MouseDown);

private void label1_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
MessageBox.Show("DOWN");
}


Regards,
Timo
 
N

Nick Randolph

Timo

MouseDown event doesn't seem to be supported/triggered by the Label. Try
using a panel and custom writing the text.

Nick Randolph
Microsoft MVP - Windows Mobile Devices
 

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