{"id":542,"date":"2008-03-10T13:17:35","date_gmt":"2008-03-10T12:17:35","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/?p=542"},"modified":"2008-03-10T13:17:35","modified_gmt":"2008-03-10T12:17:35","slug":"help-my-app-only-works-maximized","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/542-help-my-app-only-works-maximized.html","title":{"rendered":"Help! My app only works maximized"},"content":{"rendered":"<p>A built-in feature of Windows Forms applications is that the main window remembers its size and position. Normally this is an OK feature. If you had your app sized small and in the bottom left of the screen last time you used it, it opens at the same place next time.<\/p>\n<p>Unfortunately, perhaps because of a bug somewhere in Windows or somewhere in Windows Forms, this can go wrong. What happens is that somehow your app saves negative position coordinates and in effect disappears. The application icon appears on the taskbar, but if you click on it the app still doesn&#8217;t appear. The workaround is to right-click the taskbar icon and choose Maximize. Then the app appears full-screen. However, you can&#8217;t resize a maximized app, and when you hit &#8220;Restore down&#8221;, your app disappears again.<\/p>\n<p>One possibility is to figure out where the app writes its old position. Somewhere in the registry, or in an XML config file somewhere? You tell me. So here&#8217;s another workaround. Display the app normally, so you can&#8217;t see it but it isn&#8217;t actually minimized. At this point, the focus is on the app. Hit Alt+Spacebar to display the window menu. Because of some quirk in Windows, this seems to appear on the visible screen, even if the rest of the app does not. Now press M for &#8220;Move&#8221;, hold the left mouse button down, and drag the app to where you can see it. Sounds strange? Sure, but it worked for me. Thank goodness for keyboard shortcuts.<\/p>\n<div class=\"wlWriterSmartContent\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5de46cac-4a24-4949-909a-76bbcf5c0eb6\" style=\"padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/windows%20forms\" rel=\"tag\">windows forms<\/a>, <a href=\"http:\/\/technorati.com\/tags\/move%20window\" rel=\"tag\">move window<\/a>, <a href=\"http:\/\/technorati.com\/tags\/keyboard%20shortcut\" rel=\"tag\">keyboard shortcut<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A built-in feature of Windows Forms applications is that the main window remembers its size and position. Normally this is an OK feature. If you had your app sized small and in the bottom left of the screen last time you used it, it opens at the same place next time. Unfortunately, perhaps because of &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/542-help-my-app-only-works-maximized.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Help! My app only works maximized<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,79,97],"tags":[],"class_list":["post-542","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-software","category-windows"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=542"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/542\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}