Multi applications, open last position.

Noah Aas 1,210 Reputation points
2025-10-30T17:47:52.2733333+00:00

Is there an easy way to open multiple ( 1 and 2 ) applications in the last position?

Yes, there is.

in C# WinForms

in C# WPF

Thanks.

xxxxx

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Answer accepted by question author
  1. Varsha Dundigalla(INFOSYS LIMITED) 4,215 Reputation points Microsoft External Staff
    2025-10-31T09:27:01.1033333+00:00

    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:

    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".


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.