Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch Tool Window UI in VS2026 invalid on 4K monitor
robmen
#1 Posted : Wednesday, February 25, 2026 7:42:46 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/6/2015(UTC)
Posts: 27
Location: United States of America

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
I recently upgraded to a 4K monitor. NCrunch does not render its controls properly in its tool windows. Attached are pictures that demonstrate the issue better than I can describe. If I slightly resize the tool window, NCrunch will adjust its controls. If I debug (which doesn't have the NCrunch tool windows) when I come back, the controls are too small for the window again. It's minor, but it is very annoying over time.

Notice the large amount of dark gray background around the controls:

4K UI issues
4K Progress
Remco
#2 Posted : Wednesday, February 25, 2026 11:04:47 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,499

Thanks: 1020 times
Was thanked: 1369 time(s) in 1270 post(s)
Hi, thanks for sharing this issue.

Can you confirm what your DPI settings are? Also your IDE version? Do you have multiple screens?
robmen
#3 Posted : Wednesday, February 25, 2026 11:10:43 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/6/2015(UTC)
Posts: 27
Location: United States of America

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Display
3840x2160@60Hz at 125%

IDE
VS2026 18.2.2

Multiple screens:
Yes, three total, the other two are both: 2560x1440@60Hz at 100%
Remco
#4 Posted : Wednesday, February 25, 2026 11:15:58 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,499

Thanks: 1020 times
Was thanked: 1369 time(s) in 1270 post(s)
Thanks for confirming this.

In VS, under Tools->Options->All Settings->Environment->Visual Experience, you'll see an option called 'Optimize rendering for screens with different pixel densities'. If you disable this setting and restart the IDE, does this resolve the problem?
robmen
#5 Posted : Wednesday, February 25, 2026 11:28:27 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/6/2015(UTC)
Posts: 27
Location: United States of America

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
NCrunch does render its controls properly with that setting disabled. VS is also noticeably blurrier and hard to look at. After reenabling the setting (and restarting VS again), NCrunch controls rendered properly for a moment, then snapped to their broken sizes.
Remco
#6 Posted : Thursday, February 26, 2026 11:12:02 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,499

Thanks: 1020 times
Was thanked: 1369 time(s) in 1270 post(s)
Thanks for confirming this. I'm hoping you might be able to share some more details to help me understand where in the lifecycle it's getting out of sync.

- When you first start the IDE and open your solution, do any NCrunch tool windows that are automatically shown on the screen have the correct layout?
- If you specifically open a tool window (that was previously closed), does it open with the correct layout?
- When you drag windows between screens with different DPI settings, do they adapt their layout correctly?
- You mentioned that resizing a tool window fixes the layout. Does it stay fixed for the remainder of the session? Is there anything that breaks it again?

I'm not sure if this is easy for you (don't bother if it's hard), but it would also be interesting to know if you experience the same behaviour under VS2022.
robmen
#7 Posted : Thursday, February 26, 2026 11:24:20 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/6/2015(UTC)
Posts: 27
Location: United States of America

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
1. No. All of them are wrong when opening the solution
2. Opening an NCrunch tool window does display correctly. If I close a broken NCrunch tool window and open it again, it also displays correctly
3. Dragging NCrunch tool windows across monitors works correctly
4. It does get broken again when I debug (NCrunch tool windows are not displayed in debug mode). Aha! Opening any NCrunch tool window will break the "Trace Output" of the NCrunch tests window. In fact, dragging any tool window to another monitor breaks the "Trace Output" window. Also, undocking any tool window will break the NCrunch "Trace Output" window. There are a lot more ways it gets broken than I realized, which explains why I felt like this was happening more often than when I restarted VS.

I'd have to dig VS2022 out of mothballs... but could try if it would really be helpful.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.074 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download