Strange Blue Line At Bottom Of Textbox Control in VS 2022

Heather Czerniak 21 Reputation points
2021-12-10T17:10:31.553+00:00

I just upgraded to Windows 11 Home and Visual 2022 Community Edition and have a peculiar problem...or maybe not. There is a blue line at the bottom of the textboxes...

156781-textbox-blue-line.png

Is this normal? I've tried to get rid of it by tweaking every graphics-related setting in VS2022 and Windows 11 Display Settings and Personalization, but to no avail. How can I get rid of that blue line. So far, it's the only control affected and it happens in both WinForms and WPF solutions.

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
747 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 82,751 Reputation points
    2021-12-10T18:22:55.773+00:00

    The Tag "windows-app-sdk" cannot be right as you're talking about WPF, not used with the new WindowsAppSDK

    The textboxes have changed on Windows 11
    You can see what Michael DiFilippo wrote in this page : Design changes in Windows 11 :

    "Note, setting the MS Textbox BorderStyle to FixedSingle will remove the line. So it's a design change to their Fixed3d that uses the line."

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Heather Czerniak 21 Reputation points
    2021-12-11T23:18:18.51+00:00

    Thanks, Castorix31! Actually, the problem existed in both WPF and WinForms, but now I know what to do. Thanks to you and Michael DeFilippo!

    0 comments No comments