C# Form Move Stopped Event

后端 未结 5 1384
深忆病人
深忆病人 2020-12-19 13:53

Is there any event in C# that fires when the form STOPS being moved. Not while its moving.

If there is no event for it, is there a way of doing it with WndProc?

5条回答
  •  一个人的身影
    2020-12-19 14:30

    I had the same problem with a user control, but it does not have the ResizeEnd event. The solution, which worked is to override the WndProc method and listen for EXITSIZEMOVE.

    See example here

提交回复
热议问题