.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
.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:
Place both controls on a UserControl, aligned vertically.
https://github.com/user-attachments/assets/4e98643b-8c81-462f-844a-80f9233079b1
CAD_VS2026.zip