Results 1 to 8 of 8

Thread: Visual Studio & 4K

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    Visual Studio & 4K

    This is not specifically a VB.Net question, more of a VS question. Does anyone here use a 4K monitor for programming? Yesterday I replaced my old monitor with a new 4K monitor. It looks & works beautifully with everything but Visual Studio. By default Windows 11 has set the scaling to 150%. In VS this messes with the forms designer & I can't create forms to the size that I want. VS suggests setting the scaling for VS to 100%. It even provides a link to do so. This fixes the forms sizing issue but then the code text is less sharp, almost fuzzy looking. I am not happy with either situation. Just wondering if anyone has figured out how to not have the scaling issue with forms & still have sharp text.

    This is a quote from a Microsoft support page:

    When you open a form in Windows Forms Designer on an HDPI monitor, Visual Studio displays an info bar that displays the monitor's current scaling percentage (for example, 150%/144 DPI), an option to restart Visual Studio at 100% scaling to match Windows Forms Designer, and further information. Restarting at 100% scaling makes VS DPI-unaware, allowing for proper rendering without overlap.

    and also...

    When Visual Studio runs as DPI-unaware, the designer layout issues are resolved, however fonts might appear blurry and issues can appear in other designers such as the XAML Designer. Visual Studio displays a different informational message when DPI-unaware that says "Visual Studio is running as a DPI-unaware process. WPF and XAML designers might not display correctly."

    Thanks for any help...
    Last edited by nbrege; Feb 6th, 2024 at 01:24 PM.

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,398

    Re: Visual Studio & 4K

    Yeah, I have the same issue. What's worse is that if you do not rescale it, when you go to click somewhere either in the designer or in a code file it doesn't select the thing I'm trying to select.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    Re: Visual Studio & 4K

    So have you done anything to resolve the issue?

  4. #4
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,398

    Re: Visual Studio & 4K

    Nope, commented to explain that I have the same issue and for me to subscribe to the thread in case someone else has the resolution.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    Re: Visual Studio & 4K

    Ok, no problem. I guess I'll also wait for someone smarter than me to post a solution. For now, I guess I'll have to aclimate to fuzzy text...

  6. #6
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Visual Studio & 4K

    What if you have two monitors with different resolutions?
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    Re: Visual Studio & 4K

    Quote Originally Posted by dbasnett View Post
    What if you have two monitors with different resolutions?
    I have not tried that, so I'm not sure how it would work, but my plan is to have only 1 monitor for now...

  8. #8
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,398

    Re: Visual Studio & 4K

    If it helps any, I discovered that the issue only presents itself when you have something that uses a designer file.

    For example, if you're working in an ASP.NET MVC project it will not prompt you to resize nor will the text be blurry but if you're working a Windows Form Application -or- a legacy Web Form project then it will prompt you to resize.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width