Mouse events while mouse button is pressed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maciej S
    New Member
    • May 2007
    • 2

    Mouse events while mouse button is pressed

    Hi,

    I would like to move a UserControl in a drag-and-drop way (user clicks on control and while the button is down the control changes its location fallowing the mouse).

    I start the drag process in a MouseDown event but while the mouse button (left) is pressed my UserControl does not get any MouseMove (or any other mouse) event.

    What event is triggered when a mouse is moved over a control while a button is pressed?

    Thanks for any answer.
  • Maciej S
    New Member
    • May 2007
    • 2

    #2
    Ok I have resolved this. I do not now why but when I deleted MouseClick event for this control suddenly MouseMove events started to be reported while the button is pressed.

    Comment

    • kenobewan
      Recognized Expert Specialist
      • Dec 2006
      • 4871

      #3
      Well done! Were you trying to use the two events at the same time?

      Comment

      Working...