Skip to content

Runtime: MaskedTextBox Text editor is not scaled correctly under High DPI (300%), while Design-time editor works fine #14165

Closed

Description

@Olina-Zhang

.NET version

.NET SDK 11.0.100-alpha.1.25619.109

Did it work in .NET Framework?

No

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No, not a regression issue

Issue description

Under High DPI settings (300%), the in-place Text editor for MaskedTextBox is not scaled correctly at runtime.
The editor height appears too small and the text is partially clipped or not properly aligned.

Image

In contrast, the Text editor shown in the Visual Studio Properties window at design time is rendered correctly under the same DPI settings.

Image

Steps to reproduce

  1. Create a Winforms .NET project with MaskedTextBox & PropertyGrid controls
  2. Select the maskedTextBox as object for the propertyGrid1
  3. Build and run app
  4. Open Text property in PropertyGrid
  5. Observe Text editor for maskedTextBox

Activity

  1. added
    untriaged
    on Dec 24, 2025
  2. added
    area-HDPI
    and removed on Dec 24, 2025
  3. removed
    untriaged
    on Jan 6, 2026
  4. Olina-Zhang commented on Sep 4, 2026

    @Olina-Zhang
    MemberAuthor

    Verified in the .NET 11 RC2 build: 11.0.100-rc.2.26453.107 + private dlls built from main branch of Winforms repo, it was fixed:

    Image
  5. added this to the 12.0-preview1 milestone on Sep 4, 2026
  6. locked and limited conversation to collaborators on Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-HDPI

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions