Skip to content

WinForms layout issue with CheckBox and ComboBox when using HighDpiMode.PerMonitorV2 #14376

@Aniobodo

Description

@Aniobodo

.NET version

.NET 10

Did it work in .NET Framework?

Not tested/verified

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

No response

Issue description

When a UserControl contains a CheckBox and a ComboBox, enabling
Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
causes a height mismatch between the controls. The ComboBox appears slightly taller, which results in two visible lines at the bottom of the control.

This only occurs when PerMonitorV2 DPI awareness is enabled.

Steps to reproduce

(A video and a VS project are attached below as demo)
Create a UserControl containing: one CheckBox and one ComboBox

Example startup code:

[STAThread]
static void Main()
{
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);

    Application.Run(new Form1());
}

Place both controls on a UserControl, aligned vertically.

https://github.com/user-attachments/assets/4e98643b-8c81-462f-844a-80f9233079b1
CAD_VS2026.zip

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions