Hi,
First off thanks for your time.
I have a class that is derived from a control. I am trying to handle mouse events. I am able to handle most mouse events just fine except for MouseDown.
My code is fairly simple:
//constructor for the class
public MyControlClass()
{
this.MouseDown+=new MouseButtonEventHandler(MyControlClass_MouseDown);
}
public void MyControlClass_MouseDown(object sender, MouseEventArgs e)
{
MouseDownPt = e.GetPosition(this);
MessageBox.Show(MouseDownPt.X + " " + MouseDownPt.Y);
}
I put in breakpoints inside mousedown...never being hit.
Any suggestions?
Thanks again,
G
First off thanks for your time.
I have a class that is derived from a control. I am trying to handle mouse events. I am able to handle most mouse events just fine except for MouseDown.
My code is fairly simple:
//constructor for the class
public MyControlClass()
{
this.MouseDown+=new MouseButtonEventHandler(MyControlClass_MouseDown);
}
public void MyControlClass_MouseDown(object sender, MouseEventArgs e)
{
MouseDownPt = e.GetPosition(this);
MessageBox.Show(MouseDownPt.X + " " + MouseDownPt.Y);
}
I put in breakpoints inside mousedown...never being hit.
Any suggestions?
Thanks again,
G