Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exit all instances of my app

Tags:

People also ask

How do I close all instances of app?

Press Ctrl-Alt-Delete and then Alt-T to open Task Manager's Applications tab. Press the down arrow, and then Shift-down arrow to select all the programs listed in the window. When they're all selected, press Alt-E, then Alt-F, and finally x to close Task Manager.

How do I turn off multiple instances of an app in Windows 10?

In order to disable multiple instances of an app on Windows 10, you need to install a free app called SingleInstance. Go ahead and download, and run the app. The app, by default, has one app pre-configured and that's the Calculator app on Windows 10.


I have the following function:

private void TakeOverAllScreens()
    {
        int i = 0;
        foreach (Screen s in Screen.AllScreens)
        {

            if (s != Screen.PrimaryScreen)
            {
                i++;
               Process.Start(Application.ExecutablePath, "Screen|" + s.Bounds.X + "|" + s.Bounds.Y + "|" + i);
            }
        }
    }

As you can see it creates a separate instance of my application for each screen on the pc.

How can I create an exit function that closes all of them? The function needs to work on any instance of the app, not just my "Main" instance.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!