Browser Window Size during Visual Studio Debugging - windows

How can I force the window that opens when I run a website from Visual Studio to be maximized? Everytime I run my site VS automatically resizes the window to something that seems arbitrary.

After your browser window has been opened once (as not maximized) press the maximize button. Then HOLD ctrl key and press the close button ('X'). Then you may release the ctrl key.
Next time your window will be open as maximized (holding ctrl key while pressing close forces windows to remember the window's last state)

Go into the project settings - Web - Start Action, and set it to be "External program" with start.exe and command line arguments of
/MAX http://localhost:12345/myproject/default.aspx (or whatever)
This will open default.aspx in a maximized window, but only if you don't have any other IE windows open - if you do (and you have IE7) - you'll just get a tab in one of those windows instead.
This will probably keep your debugger from attaching to the iexplore process and may indeed return immediately because start.exe only runs for a second. You may have to manually attach to the iexplore.exe process.
But it doesn't involve a bunch of window-manipulating JavaScript.

Related

Program behaves differently when run from C:\Program Files vs outside of that folder?

Have a strange issue using Win10 x64 Pro. My program main window hides itself, opens another window for an action, then closes that and the main window shows itself again and set as the foreground Window. All that works fine, but when the program is run from C:\Program Files the behavior of Windows is not as expected.
If I click on a window of a different process that is behind the main window, it gets the focus but is still visually behind my programs main window. I can click on another window then things start working as expected. I can also just click back on my main window then the one in the background and works (but only if I first click on the background window then my main window then the background window again). However, if I move the same .exe to say d:\test and run it, the problem doesn't occur (I can click on the background window and it shows over the top of my main window like expected).
I tried disabling norton auto-protect, it didn't make any difference.
What could this be, is there some trick I could use get Windows to give the expected results?
Thanks.

How to close Vscode window without closing all tabs in macOS

I switch between many projects, all having triple panes and many tabs open. When I'm not working on a project I close the window using the GUI by the normal red close window button. When I open it again all my tabs are as I've left.
How do I do it with a keyboard shortcut? Cmd+W closes the current tab (which I don't want), Cmd+Q quits Vscode completely (which I don't want either), closing all windows. How do I close a single Vscode window with keyboard, identical to hitting the close button with mouse, so that when I reopen the window in the future all my tabs are intact?
Okay found the shortcut after searching with a better query on Google. It is:
Cmd + Shift + W

Restarting firefox using the developer console (shift+F2) makes every restarted window have the developer console open

When I restart firefox using the developer console, i press shift+F2 and then I write
restart
in the command line that comes up at the bottom and press ENTER.
This is of course a very useful feature, every window dissapears and comes back, but each restarted window will also have the developer console opened as if I was pressing shift+F2 on everyone of them.
Why?
The Developer Toolbar is a global thing, just like any other toolbar (e.g. Nav Bar or Bookmarks Bar). Firefox will remember the visiblity state and will restore it when opening new windows, either the usual way, or after a restart.
Just close the toolbar in one window, and it will be closed in every other window as well.

Internet Explorer 8 Developer Tools not displaying

Within the last day, in Internet Explorer 8, the developer tools window will not show up.
When I hit F12 or use menu Tools -> Developer Tools I get the Developer Tools entry in the Task Bar but the actual window will not show up.
It has been running fine for a month or so. I have tried rebooting with no luck.
How do I get a window back on the screen when it moved far, far away?
From the article:
Switch to the application, say by clicking on its taskbar button or by
Alt+Tab'ing to it. Then type Alt+Space to call up the System menu: You
should get a window floating at the edge of the screen. Type M to
select Move, then press an arrow key to enter Move mode.
Additional remark by #WebSolProv:
It would appear that something happens with IE that causes the developer tools window to be shrunk to the height of the header bar and width of about 2 inches. By using this solution you can then move the the window into view and enlarge as usual.
If you are on Windows 7, Windows Key + Up Arrow Key will maximize the window.
Not related to the window issue, but in some companies, this could be due to policies. In such cases, at least for me, it worked after modifying the registry like this
HKEY_LOCAL_MACHINE > SOFTWARE > POLICIES > MICROSOFT > INTERNET EXPLORER > IEDEVTOOLS
and then modifying the DISABLED value to 0, which was 1 for me previously.
I had same problem on Windows 7 when I went back to single monitor setup after having a dual monitor setup.
Use the Windows 7 keyboard shortcut for moving windows around the screen. You may need to repeat the same combination twice.
Windows Key + Left Arrow
or
Windows Key + Right Arrow
Deleting some registry keys worked for me. Try running this in a prompt
reg delete "hkcu\software\microsoft\internet explorer\iedevtools" /v windowpos
Select by Developer Tools window by ALT+TAB then press ALT+SPACE to show window menu and select Maximize or type 'X' character. The Winow will Show UP.
If the window is off page and out of reach by the cursor you can always right click the program in the task bar, click Move then you can use the arrow keys to move the window back into view
For me the menu item 'tools > developer tools' and F12 would not do anything, however the command bar 'tools' dropdown worked as well as the command bar icon.
Run IE and hit F12 , window appears in taskbar.Right click on taskbar and select maximize. vola!! it will appear

Visual Studio Freezing/TFS Window Might be off screen

I am using Visual Studio 2005 with Team Foundation Server.
When I right click a file under the source control and choose "compare" VS appears to freeze until I hit escape. My guess is that the window that is supposed to be popping up is somewhere I can't get to. I tried minimizing all the windows that I can and it is nowhere to be found.
Try the keyboard shortcut to get to the window's main menu () then hit 'M' for move and hit an arrow key to attach the window to the mouse - then at the next move of the mouse it should jump to it.
Experiment with a window you can see first.
i had the same problem when trying to check in to TFS - no dialog and ESC escape key undid the freeze.
I had recently, before the problem, changed my Laptop + Monitor configuration as follows:
from Primary screen being the laptop and secondary screen being the monitor
to primary screen being the monitor and secondary being laptop.
I got rid of my secondary screen and tried again. SUre enough the invisible dialog was no longer invisible.
I had to disable my Second Screen as well. Now the check-in screen where you can add a comment IS visible.

Resources