WinForms Tooltip Position Persistence

Job ID: 40473847

Budget: $10 – $30 USD

I have a C# WinForms notification tooltip that users can drag anywhere on-screen. Right now the position resets every time the application restarts. The XML settings file I already use for other preferences is in place, so the serialization and path logic are there; the tooltip’s coordinates simply never get written or read back.

What I need is a clean, reliable way to capture the tooltip’s X and Y whenever the user finishes moving it, store those two integers in my existing XML file, and then restore the coordinates the next time the form loads so the tooltip reappears exactly where the user left it. No other preferences have to be added—just the location. The solution must blend into standard WinForms patterns (e.g., Form.Load for restore, MouseUp/Move or equivalent events for capture) without introducing external libraries.