Skip to content

Enable Per-Monitor DPI Awareness, crashes when add ComboBox to a monitor with a DPI different from the system DPI. #15286

Closed

Description

@chenYL123djdj

.NET version

.NET version

.NET SDK:
Version: 10.0.301
Commit: 96856fd726
Workload version: 10.0.300-manifests.8c7d7c03
MSBuild version: 18.6.4+96856fd72

Did it work in .NET Framework?

Yes

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

It correct on .NET 6.0.36.

Issue description

The application crashes when a ComboBox with a custom Font and a non-None AutoCompleteMode is added on a non-system-DPI display.
Image

Steps to reproduce

Run the attached application, on a non-system-DPI monitor, click the button to reproduce the crash.
TestComboBox.zip

devenv_BJDIKfNUlw.mp4

Activity

  1. added
    untriaged
    on Oct 20, 2026
  2. self-assigned this
    on Oct 21, 2026
  3. added
    area-HDPI
    and removed
    untriaged
    on Oct 22, 2026
  4. added
    💥 regression-release
    on Oct 23, 2026
  5. Amy-Li03 commented on Oct 30, 2026

    @Amy-Li03
    Contributor

    Verified with private dlls built from main branch of dotnet/winforms repo + .NET SDK 11.0.100 build, the issue has been fixed as below video: application no crashes when a ComboBox with a custom Font and a non-None AutoCompleteMode is added on a non-system-DPI display.

    Image
  6. added this to the 12.0-preview1 milestone on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

💥 regression-releasearea-HDPI

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions