Web Browser ActiveX control with HiDPI display

Started by honkinberry, June 18, 2018, 10:48:07 AM

Previous topic - Next topic

honkinberry

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

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

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