Combining Events

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to combine events... I think thats what I need to do. I want to beable to drag my form from a specified control. So what I thiink I need to do is while the Mouse is Down, if the MouseMoves, to relocate the Form to the Mouse's Position. But I don't know how to check if both events are true.
 
In the MouseMove event handler, test the Button property of MouseEventArgs (e) to see if any buttons are currently pressed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top