2

I would like to detect when a winform starts being dragged and when this stops.

The reason is quite easy: I would like to offer a Ctrl+Z function that sets the window back to its original position, and I need obviusly to store when move starts and ends

Are there any possibilities to do this?

Update 1: I found how to detect stop dragging: C# Form Move Stopped Event

I would like to detect START dragging now

Community
  • 1
  • 1
Francesco Belladonna
  • 11,361
  • 12
  • 77
  • 147

1 Answers1

5

As mentioned in your linked article:

Form.ResizeBegin and Form.ResizeEnd events handle what you want.

Community
  • 1
  • 1
John Arlen
  • 6,539
  • 2
  • 33
  • 42