Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

Recreating PerMonitor sample in VB.NET requires "Enable themes" to be uncommented to fire DpiChanged event #37

Open

Description

I'm trying to create this sample in VB.Net, in order to figure out how to take advantage of the DpiChanged event.

Steps to reproduce:

  1. Create new VB.Net Winforms application, targeting 4.7
  2. Add DpiAwareness key to app.config
  3. Uncomment Win 10 supportedOS in app.manifest
  4. In design mode for Form1, double-click the DpiChanged event entry to create the event body in the code behind.
  5. Put a breakpoint on the event and run the app
  6. Drag the window between two monitors with different Dpi scaling set.

The event will not fire until the "Enable themes" section is uncommented in the manifest, which is not required in the C# version given.

Any idea why this is?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions