0

I am coding a WinForms application in Visual Studio C# 2019 and I want to find out the location of the WinForm window (the starting location of the WinForm window after drag WinForm from the desktop).

How can I do that?

ProgrammingLlama
  • 36,677
  • 7
  • 67
  • 86
Shams Tech
  • 105
  • 8
  • Please be careful not to misuse tags. Most tags have descriptions that you can read by hovering over them, and the descriptions usually outline cases where you should or shouldn't use the tags. For example, the `[visual-studio]` question should only be used for questions about the Visual Studio application, as opposed to code authored within the VS environment. I've removed that tag for you. – ProgrammingLlama Jun 26 '21 at 13:30
  • Does this answer your question? https://stackoverflow.com/questions/5885407/winform-dialog-detect-begin-and-end-of-move – Sal Jun 26 '21 at 13:31
  • 1
    [Control.LocationChanged](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.control.locationchanged?view=net-5.0) & [Form.DesktopLocation](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.form.desktoplocation?view=net-5.0) – dr.null Jun 26 '21 at 13:48

0 Answers0