Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How to get winform webbrowser zoom value?

$
0
0

As we know, we could set winform webbrowser zoom value by

var browserInst = ((SHDocVw.IWebBrowser2)(webbrowser.ActiveXInstance));browserInst.ExecWB(SHDocVw.OLECMDID.OLECMDID_OPTICAL_ZOOM, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_SHOWHELP,IntPtr.Zero, ref pvaIn); 

or

webbrowser.Document.body.style

, the second way is not what i want. But we could only set zoom value by using the first way. So i want to ask for another to get the zoom value.

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>