T
Tom
Hi
I am having problems working out if the mouse pointer is within the
control bounds within the OnMouseMove method:
Protected Overrides Sub OnMouseMove(ByVal e As MouseEventArgs)
Debug.WriteLine(Me.Bounds.Contains(e.X, e.Y))
End Sub
This always returns false even when the mouse is being moved over the
control. I would expect it only to return false if the mouse was being
moved outside the control when the mouse button was originally pressed
over the control.
MSDN suggests that i am using it correctly:
http://msdn.microsoft.com/library/d...systemdrawingrectangleclasscontainstopic1.asp
Anyone know where i am going wrong?
Thanks
Tom
I am having problems working out if the mouse pointer is within the
control bounds within the OnMouseMove method:
Protected Overrides Sub OnMouseMove(ByVal e As MouseEventArgs)
Debug.WriteLine(Me.Bounds.Contains(e.X, e.Y))
End Sub
This always returns false even when the mouse is being moved over the
control. I would expect it only to return false if the mouse was being
moved outside the control when the mouse button was originally pressed
over the control.
MSDN suggests that i am using it correctly:
http://msdn.microsoft.com/library/d...systemdrawingrectangleclasscontainstopic1.asp
Anyone know where i am going wrong?
Thanks
Tom