<p>I am using Windows, and I have two monitors.</p>

<p>Some applications will <em>always</em> start on my primary monitor, no matter where they were when I closed them.</p>

<p>Others will always start on the <em>secondary</em> monitor, no matter where they were when I closed them.</p>

<p>Is there a registry setting buried somewhere, which I can manipulate to control which monitor applications launch into by default?</p>

<p>@rp: I have Ultramon, and I agree that it is indispensable, to the point that Microsoft should buy it and incorporate it into their OS.  But as you said, it doesn't let you control the default monitor a program launches into.</p>

[{'answer_id': 52775, 'author': 'Kevin Fairchild', 'author_id': 3743, 'author_profile': 'https://Stackoverflow.com/users/3743', 'pm_score': 2, 'selected': False, 'text': "<p>I'm fairly sure the primary monitor is the default.  If the app was coded decently, when it's closed, it'll remember where it was last at and will reopen there, but -- as you've noticed -- it isn't a default behavior.</p>\n\n<p>EDIT: The way I usually do it is to have the location stored in the app's settings.  On load, if there is no value for them, it defaults to the center of the screen.  On closing of the form, it records its position.  That way, whenever it opens, it's where it was last.  I don't know of a simple way to tell it to launch onto the second monitor the first time automatically, however.</p>\n\n<p>-- Kevin Fairchild</p>\n"}, {'answer_id': 52779, 'author': 'Jacob Schoen', 'author_id': 3340, 'author_profile': 'https://Stackoverflow.com/users/3340', 'pm_score': 0, 'selected': False, 'text': '<p>Do not hold me to this but I am pretty sure it depends on the application it self. I know many always open on the main monitor, some will reopen to the same monitor they were previously run in, and some you can set. I know for example I have shortcuts to open command windows to particular directories, and each has an option in their properties to the location to open the window in. While Outlook just remembers and opens in the last screen it was open in. Then other apps open in what ever window the current focus is in.</p>\n\n<p>So I am not sure there is a way to tell every program where to open. Hope that helps some.</p>\n'}, {'answer_id': 52795, 'author': 'rp.', 'author_id': 2536, 'author_profile': 'https://Stackoverflow.com/users/2536', 'pm_score': 4, 'selected': False, 'text': '<p>Get UltraMon. Quickly. </p>\n\n<p><a href="http://realtimesoft.com/ultramon/" rel="noreferrer">http://realtimesoft.com/ultramon/</a> </p>\n\n<p>It doesn\'t let you specify what monitor an app starts on, but it lets you move an app to the another monitor, and keep its aspect ratio intact, with one mouse click. It is a very handy utility.</p>\n\n<p>Most programs will start where you last left them. So if you have two monitors at work, but only one at home, it\'s possible to start you laptop at home and not see the apps running on the other monitor (which now isn\'t there). UltrMon also lets you move those orphan apps back to the main screen quickly and easily.</p>\n'}, {'answer_id': 53187, 'author': 'David Citron', 'author_id': 5309, 'author_profile': 'https://Stackoverflow.com/users/5309', 'pm_score': 7, 'selected': True, 'text': '<p>Correctly written Windows apps that want to save their location from run to run will save the results of <a href="http://msdn.microsoft.com/ru-ru/library/windows/desktop/ms633518%28v=vs.85%29.aspx" rel="noreferrer"><code>GetWindowPlacement()</code></a> before shutting down, then use <code>SetWindowPlacement()</code> on startup to restore their position.</p>\n\n<p>Frequently, apps will store the results of <code>GetWindowPlacement()</code> in the registry as a <code>REG_BINARY</code> for easy use.</p>\n\n<p>The <code>WINDOWPLACEMENT</code>route has many advantages over other methods:</p>\n\n<ul>\n<li>Handles the case where the screen resolution changed since the last run: <code>SetWindowPlacement()</code> will automatically ensure that the window is not entirely offscreen</li>\n<li>Saves the state (minimized/maximized) but also saves the restored (normal) size and position</li>\n<li>Handles desktop metrics correctly, compensating for the taskbar position, etc. (i.e. uses "workspace coordinates" instead of "screen coordinates" -- techniques that rely on saving screen coordinates may suffer from the "walking windows" problem where a window will always appear a little lower each time if the user has a toolbar at the top of the screen).</li>\n</ul>\n\n<p>Finally, programs that handle window restoration properly will take into account the <code>nCmdShow</code> parameter passed in from the shell. This parameter is set in the shortcut that launches the application (Normal, Minimized, Maximize):</p>\n\n<pre><code>if(nCmdShow != SW_SHOWNORMAL)\n    placement.showCmd = nCmdShow; //allow shortcut to override\n</code></pre>\n\n<p>For non-Win32 applications, it\'s important to be sure that the method you\'re using to save/restore window position eventually uses the same underlying call, otherwise (like Java Swing\'s <code>setBounds()</code>/<code>getBounds()</code> problem) you\'ll end up writing a lot of extra code to re-implement functionality that\'s already there in the <code>WINDOWPLACEMENT</code> functions.</p>\n'}, {'answer_id': 53946, 'author': 'Aardvark', 'author_id': 3655, 'author_profile': 'https://Stackoverflow.com/users/3655', 'pm_score': 0, 'selected': False, 'text': "<p>I've noticed that if I put a shortcut on my desktop on one screen the launched application may appear on that screen (<strong><em>if</em></strong> that app doesn't reposition itself).</p>\n\n<p>This also applies to running things from Windows Explorer - if Explorer is on one screen the launched application will pick that monitor to use.</p>\n\n<p>Again - I think this is when the launching application specifies the default (windows managed) position. Most applications seem to override this default behavior in some way.</p>\n\n<p>A simple window created like so will do this:</p>\n\n<p>hWnd = CreateWindow(windowClass, windowTitle, WS_VISIBLE | WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, SW_SHOW, CW_USEDEFAULT, 0, NULL, NULL, hInst, NULL);</p>\n"}, {'answer_id': 73882, 'author': 'stevex', 'author_id': 8831, 'author_profile': 'https://Stackoverflow.com/users/8831', 'pm_score': 2, 'selected': False, 'text': "<p>Important note:  If you remember the position of your application and shutdown and then start up again at that position, keep in mind that the user's monitor configuration may have changed while your application was closed.</p>\n\n<p>Laptop users, for example, frequently change their display configuration.  When docked there may be a 2nd monitor that disappears when undocked.  If the user closes an application that was running on the 2nd monitor and the re-opens the application when the monitor is disconnected, restoring the window to the previous coordinates will leave it completely off-screen.</p>\n\n<p>To figure out how big the display really is, check out GetSystemMetrics.</p>\n"}, {'answer_id': 511735, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 6, 'selected': False, 'text': "<p>Here's what I've found.  If you want an app to open on your secondary monitor by default do the following:</p>\n\n<pre><code>1. Open the application.\n2. Re-size the window so that it is not maximized or minimized.\n3. Move the window to the monitor you want it to open on by default.\n4. Close the application.  Do not re-size prior to closing.\n5. Open the application.\n   It should open on the monitor you just moved it to and closed it on.\n6. Maximize the window.\n</code></pre>\n\n<p>The application will now open on this monitor by default.  If you want to change it to another monitor, just follow steps 1-6 again.</p>\n"}, {'answer_id': 702893, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>So I had this issue with Adobe Reader 9.0. Somehow the program forgot to open on my right monitor and was consistently opening on my left monitor. Most programs allow you to drag it over, maximize the screen, and then close it out and it will remember. Well, with Adobe, I had to drag it over and then close it before maximizing it, in order for Windows to remember which screen to open it in next time. Once you set it to the correct monitor, then you can maximize it. I think this is stupid, since almost all windows programs remember it automatically without try to rig a way for XP to remember.</p>\n'}, {'answer_id': 10937493, 'author': 'Mykey', 'author_id': 1442941, 'author_profile': 'https://Stackoverflow.com/users/1442941', 'pm_score': 1, 'selected': False, 'text': "<p>So I agree there are some apps that you can configured to open on one screen by maximizing or right clicking and moving/sizing screen, then close and reopen. However, there are others that will only open on the main screen. </p>\n\n<p>What I've done to resolve: set the monitor you prefer stubborn apps to open on, as monitor 1 and the your other monitor as 2, then change your monitor 2 to be the primary - so your desktop settings and start bar remain. Hope this helps. </p>\n"}, {'answer_id': 25909284, 'author': 'Croo', 'author_id': 561709, 'author_profile': 'https://Stackoverflow.com/users/561709', 'pm_score': 4, 'selected': False, 'text': "<p>It's not exactly the answer to this question but I dealt with this problem with the <code>Shift + Win + [left,right] arrow keys</code> shortcut. You can move the currently active window to another monitor with it.</p>\n"}, {'answer_id': 27714393, 'author': 'Bored', 'author_id': 4406959, 'author_profile': 'https://Stackoverflow.com/users/4406959', 'pm_score': -1, 'selected': False, 'text': '<p>Right click the shortcut and select properties. \nMake sure you are on the "Shortcut" Tab. \nSelect the RUN drop down box and change it to Maximized. </p>\n\n<p>This may assist in launching the program in full screen on the primary monitor. </p>\n'}]
['https://Stackoverflow.com/questions/52755', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/672/']