Connecting Tech Pros Worldwide Help | Site Map

OnMouseMove not firing

Newbie
 
Join Date: Nov 2009
Posts: 13
#1: 2 Weeks Ago
Hi,

I am planning to override the mouse movement to discrete steps so that i can get a coarser movement of the mouse for easier click of objects.

However, I am not getting any trigger in the OnMouseMove event. Anybody know why? My mouse is moving on a Form with a Picturebox on it.

Expand|Select|Wrap|Line Numbers
  1. protected override void OnMouseMove(MouseEventArgs e)
  2.         {
  3. base.OnMouseMove(e);
  4.         }
ET
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,148
#2: 2 Weeks Ago

re: OnMouseMove not firing


If you are overriding the form's event, then you won't see it when its on the picture.
How come you didn't just attach an event handler instead of overriding?
Reply

Tags
no fire, onmousemove


Similar C# / C Sharp bytes