Visual Studio always on top when debugging
Asked Answered
O

11

17

When I start debugging the project we are currently working on, the program window is not given proper focus in windows but is stacked behind the Visual Studio window. I don't think this problem occurs on any of my team members computers, so it looks like it's a problem on my system.

Is there a setting in VS2008 for always on top or something like that? I can't seem to find one...

Any idea what could be causing this? Visual Studio? The program code?

I know this is sort of a vague issue but I'll concider adding more detail if no one recognizes the problem.

EDIT: I am using Visual Studio 2008 with ReSharper, GhostDoc and Resource Refactoring Tool.

EDIT: I've looked through every single option I can find in VS and I can not find anything that would explain this behaviour.

EDIT: I am running this on a dual monitor setup Lenovo Thinkpad Tseries laptop. The monitors are connected through a docking station. Monitor 1 is connected with a DVI cable and monitor 2 is connected vith a VGA cable.

Odoric answered 18/3, 2009 at 15:36 Comment(6)
I also see this from time to time. CodeRush? TeamCity?Jahn
TC has some Resharper bits, but prob nnothing to do with it...Jahn
Is it possible that VS is being launched from a TopMost window?Antoinette
I'm not sure i uderstand the question... could you please elaborate?Odoric
It's possible for a process' main window to inherit the TopMost property if there's other poorly-behaved software on the system. E.g., I've had my IM client pop open a new window with a NULL parent while a topmost splash screen was displayed. Windows assumed the splash was the parent window, and suddenly the IM client window was a topmost window. (Task Manager is another example of a topmost window)Antoinette
I have no idea if this was the case tbh... I'll try to make a note of what programs are open if it happens again. As it stands now I havent had problems for a while.Odoric
O
4

This is just a theory, but after I recently upgraded to ReSharper 4.5 this problem looks to be resolved. It could be a coincidence but I'm inclined to think it isn't... :P

Odoric answered 5/5, 2009 at 11:48 Comment(7)
I had the same problem with same solution.Extracanonical
Oh... exelent. Guess that confirms it :)Odoric
I just installed ReSharper 6 and it seems to have caused this problem for me.Ciprian
FYI, Resharper 8.2 is now doing it again.Kimball
i don't use Resharper and i have this problem. I think it's unrelatedTrudy
The solution is: #13397096Kastroprauxel
Just had this problem after update resharper licencing. I disabled Resharper and it fix it... Now, the problem moved. But i can browse documentation. hep!Isomerize
S
21

I had the same problem that Visual Studio 2010 was running Always-On-Top.

I don't know whether this always works. Anecdotally, I closed Visual Studio 2010. Then I re-ran as administrator. Visual Studio then ran normally, not Always-On-Top. I closed Visual Studio. I ran Visual Studio normally (not as administrator). Visual Studio did not run as Always-On-Top.

Note: by "ran as administrator", I mean that I right clicked; on popup menu clicked on properties; on dialog clicked on "Advanced"; checked "run as administrator".

I did not try running as administrator by right clicking and then clicking "run as administrator" on the popup menu.

I only did this one time because once I got Visual Studio running normally, I did not know how to make it run Always-On-Top again.

Stringent answered 31/10, 2011 at 1:20 Comment(6)
Helped me with same issue I was having with Visual Studio 2012RCVidal
Helped me as well running Visual Studio 2013 and ReSharper 8.2 on a new computer.Innovation
had similar problem. I right-clicked VS 2013 and clicked "Run as administrator" and that fixed the issueTrudy
this fix also helped me for Android Studio. Thanks.Instillation
I had the same problem with VS2013, closing and open again (regular privileges) worked for meSmarten
Has same issue last few days with vs2019 with resharper and various extensions. This answer solved it.Merrimerriam
E
6

See also this answer: https://superuser.com/a/704621/710593

  1. Select a different application (e.g. Chrome).
  2. Press Windows-Home (which will minimise everything else).
  3. Press Windows-Home again (which will restore everything else).
  4. Visual Studio will function normally again.

It just happened to me in VS 2019, and this weird sequence fixed the problem.

Edea answered 23/10, 2020 at 6:36 Comment(1)
yep, this is the answerDelphinus
O
4

This is just a theory, but after I recently upgraded to ReSharper 4.5 this problem looks to be resolved. It could be a coincidence but I'm inclined to think it isn't... :P

Odoric answered 5/5, 2009 at 11:48 Comment(7)
I had the same problem with same solution.Extracanonical
Oh... exelent. Guess that confirms it :)Odoric
I just installed ReSharper 6 and it seems to have caused this problem for me.Ciprian
FYI, Resharper 8.2 is now doing it again.Kimball
i don't use Resharper and i have this problem. I think it's unrelatedTrudy
The solution is: #13397096Kastroprauxel
Just had this problem after update resharper licencing. I disabled Resharper and it fix it... Now, the problem moved. But i can browse documentation. hep!Isomerize
U
4

You can toggle “Always on top” option for the Active window using:

"Windows Key + A"

Underthrust answered 10/12, 2014 at 21:22 Comment(8)
This does not fix the problem.Hemato
This fixed the problem for me.Imparity
fixed it for me as well. Good call, Virtually PresentOutcrop
Win+A now brings up the Action Center in Windows 10Minter
Side note - it will also insert the letter "a" in your IDE - don't forget about it :) This happened after upgrading VS2015 to Update 2 (Windows 8.1). Thanks VP!Gaskins
This answer depends upon some third party tool. Windows does not provide (and never has, according to this page) an automated or built-in shortcut for making a window stay on top. (If I am incorrect about this, please provide a link to official documentation stating otherwise.)Schaub
not a fix for the problem and doesn't align with modern versions of windows, downvoteRose
This is probably for an older version of Windows. See this answer instead: https://mcmap.net/q/696235/-visual-studio-always-on-top-when-debuggingEdea
W
1

I had this problem with Visual Studio 2013 running on windows 10, I'm not 100% sure when or why it started, but it may have been after installing some Windows updates.

I resolved it using a minor variation of the method described by Indinfer:

  • Close Visual Studio
  • Right click on the Visual Studio shortcut, Run As Administrator. The problem is no longer there.
  • Stop and start Visual Studio as normal. The problem is no longer there.
Ween answered 25/11, 2015 at 9:50 Comment(0)
C
0

I got this when I have AppVerifier set for vstest.discoveryengine.x86.exe

Contrast answered 7/12, 2015 at 12:39 Comment(0)
B
0

Simplest solution is to reset your custom settings on Visual studio.

  1. Goto -> Tools -> import and export settings -> select "Reset all settings"
  2. Close all instances of Visual Studio, re-open.

This is safest solution but you will loose all customization you did, e.g. adding line numbers for code files, themeing, etc.

It worked for my Visual Studio 2012 Ultimate.

Beni answered 22/2, 2017 at 8:15 Comment(0)
R
0

None of the above worked for me, but it went away while I was troubleshooting a different problem. I could not register MSVS 2019 as the Just-In-Time debugger even though I was running in admin. The message as "Another Debugger is Registered...". I uninstalled MSVS Shell (2015) and MSVS 2017, and deleted the registry keys listed in the accepted asnwer here: How to stop “Just In Time Debugging” messages blocking a buildserver , and it solved both problems.

BTW - The problem Always On Top problem did not happen with C++ debugging and I am using ReSharper Ultimate 2020.

Refreshing answered 16/4, 2020 at 16:21 Comment(0)
H
0

It worked for my by simply restarting my computer. Three times over the last month or so.

Horologist answered 31/1, 2023 at 14:51 Comment(0)
S
-1

No solution, but maybe an observation: I got this from time to time too with WinForms applications debugging on a machine with dual monitor enabled. Thinking about it, I never tried turning one monitor off and at my new work we do not create WinForms applications. With Webforms starting a new browser I never had this problem (yet).

Surat answered 25/3, 2009 at 8:29 Comment(1)
I am running dual monitors as well... will look into this. Didn't occur to me that this could be related. Thanks :)Odoric
L
-3

Very Simple. Just Toggle Maximise Button on Visual Studio 2017

Laborious answered 6/5, 2019 at 17:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.