i have a problem with a simple program.
my program has a label.
i tryed to add event handlers for both mouse down event
and mouse double click event.
it seems that when these two handlers are defined, only the mouse down event is responding.
the double click event simply does not respond. but when i disable the mouse down event, it works fine
my code is:
label.MouseDown += new MouseEventHandler(lab_MouseDown);
label.MouseDoubleClick += new MouseEventHandler(lab_MouseDoubleClick);
private void lab_MouseDoubleClick(object sender, MouseEventArgs e)
{
this.Text += " double click";
}
private void lab_MouseDown(object s , MouseEventArgs e)
{
this.Text += " mouse doen";
}
is there any way i can manage these to events to work together ?