Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
mikebrengartner opened this issue Oct 31, 2017 · 0 comments

Comments

@mikebrengartner
Copy link

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant