c# - See if left mouse button is held down in the OnMouseMove event -


How can I find that a control in the left mouse button OnMouseMove ?

Let's tell your event holder an MouseEventArgs for an OnMouseMove event If the left button is pressed, then

  Private Zero mouseMoveEventHandler (Object Sender, MouseEventArgs E) {if (e.button == MouseButtons.Left) {// Skip the stuff} else {/ Do other things}}  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -