Author Topic: Web Browser ActiveX control with HiDPI display  (Read 278 times)

honkinberry

  • Full Member
  • ***
  • Posts: 138
Web Browser ActiveX control with HiDPI display
« on: June 18, 2018, 10:48:07 AM »
The HiDPI compatibility is just fantastic.  The most pressing issue remaining, is the display of any web content in a Web Browser ActiveX control.

Attached please find test files, as well as a screenshot showing the difference between loading the same web page in the Web Browser control, versus natively in Internet Explorer.

I did find this thread on the subject: https://social.msdn.microsoft.com/Forums/vstudio/en-US/cea332e5-071d-4db5-bee5-1c3342644e70/webbrowser-control-high-dpi-support?forum=winforms
Apparently it may be as easy as setting the AutoScaleMode to "Dpi" instead of "Font", but I'm not sure how or if that would apply via OpenDCL.

Any assistance would be most appreciated!
Cheers!

--J

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 2983
    • Outside The Box
Re: Web Browser ActiveX control with HiDPI display
« Reply #1 on: June 25, 2018, 02:26:41 PM »
The AutoScaleMode setting had no effect on the web browser control according to the OP in the linked thread. In any case, that property is for a .NET Windows.Forms.Form, so it is no use to OpenDCL.

honkinberry

  • Full Member
  • ***
  • Posts: 138
Re: Web Browser ActiveX control with HiDPI display
« Reply #2 on: June 25, 2018, 02:39:57 PM »
Ah, you are correct.  Further searching, I found this:
https://stackoverflow.com/questions/38754354/wpf-web-browser-control-and-dpi-scaling
So it's able to be solved via a simple Registry setting.

Thank you!

--J