MouseDown Event for Label

  • Thread starter Thread starter Timo Meier
  • Start date Start date
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
 
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
 
Back
Top