如何放大WebBrowser控件? [英] How do I Zoom in my WebBrowser control?

查看:192
本文介绍了如何放大WebBrowser控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要知道如何使WebBrowser放大和缩小.

I need to know how to get my WebBrowser to Zoom in and out.

我希望它具有拆分按钮或类似的东西,当我单击该按钮时,它具有25%,50%,75%和100%的项(您知道,例如在Internet Explorer中).

I want it to have split button or something like that that has 25%, 50%, 75%, and 100% items when I click the button (you know, like in Internet Explorer).

我尝试了所有类型的代码,但是它们不起作用.....我试图使用Create Graphics()但它不起作用....以及许多其他代码.

I have tried all kinds of code but they dont work.....I have tried to use Create Graphics() but it doesnt work........and many others.

我知道有一种方法可以做到,但是我找不到方法,所以这里的某人可能应该知道如何....

I know there is a way to do it, but I cant find how, so somebody here probably should know how....

我的表单上的WebBrowser控件名为 WebBrowser .

The WebBrowser control on my form is named WebBrowser.

预先感谢

fspilot2006

fspilot2006

推荐答案

不确定代码,但请尝试按住控制按钮并旋转鼠标滚轮.它可以与Internet Explorer一起使用.

Not sure about the code but try holding the control button and spinning the wheel on your mouse. It works with Internet Explorer.

Bob2250


这篇关于如何放大WebBrowser控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆