Skip to content

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

@Olina-Zhang

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

Metadata

Metadata

Labels

area-HDPIHDPI, not specific to Dpi mode of appuntriagedThe team needs to look at this issue in the next triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions