Thank you for reaching out.
The idea is to remember the window’s placement details when the user closes the application and then restore those settings the next time it’s opened. This includes information such as the window’s location on the screen, its size, and whether it was in normal, maximized, or minimized state. When the application launches again, it can use these saved values to appear in the same spot, creating a seamless and familiar experience for the user.
This approach works well for both WinForms and WPF applications. You just need to ensure that each app stores its own window information separately, so they don’t overlap or interfere with one another. If both applications were last opened on the same display, you can even adjust their positions slightly to prevent them from reopening on top of each other.
In short, by saving the window’s position and restoring it on startup, both your applications can reliably open in the exact same state and layout as before, making it easy and convenient for the user.
References:
- Manage window size & placement (Windows App SDK
AppWindow): https://learn.microsoft.com/windows/apps/windows-app-sdk/windowing/appwindow - WPF
Window(position/size/state): https://learn.microsoft.com/dotnet/api/system.windows.window - WinForms
Form(position/state): https://learn.microsoft.com/dotnet/api/system.windows.forms.form - Persist per‑user settings (Application Settings): https://learn.microsoft.com/dotnet/framework/winforms/advanced/using-application-settings
This is my understanding of the question you posted.
Please let us know if you require any further assistance, we’re happy to help.
If you found this information useful, kindly mark this as "Accept Answer".