microsoft.mshtml.dll [英] microsoft.mshtml.dll

查看:60
本文介绍了microsoft.mshtml.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在项目中使用mshtml.dll引用来显示浏览器

控件时,滚动条看起来并不标准..它们几乎是

flatish有一点点外观...有没有什么方法可以让他们来看看/ b $ b类似于普通的滚动条?谢谢

When you use the mshtml.dll reference in your project to show a browser
control, the scroll bars are not standard looking.. they are pretty much
flatish with a slight 3d appearence... is there any way to get them to
resemble normal looking scroll bars? thanks

推荐答案

*" Brian Henry" <峰; br ********** @ newsgroups.nospam> scripsit:
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
当您在项目中使用mshtml.dll引用来显示浏览器
控件时,滚动条看起来并不标准..它们几乎是平坦的一个轻微的3D外观...有没有办法让他们像普通的滚动条?谢谢
When you use the mshtml.dll reference in your project to show a browser
control, the scroll bars are not standard looking.. they are pretty much
flatish with a slight 3d appearence... is there any way to get them to
resemble normal looking scroll bars? thanks




什么是滚动条?


-

MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://dotnet.mvps.org/dotnet/faqs/> ;



What scrollbars?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


我在控件中的文档上看到滚动条

" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道

news:u2 ************** @ TK2MSFTNGP12.phx.gbl ...
I''m seeing scroll bars on the document in the control
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:u2**************@TK2MSFTNGP12.phx.gbl...
*" Brian Henry" ; <峰; br ********** @ newsgroups.nospam> scripsit:
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
当您在项目中使用mshtml.dll引用来显示浏览器
控件时,滚动条看起来并不标准..它们几乎是平坦的一个轻微的3D外观...有没有办法让他们像普通的滚动条?谢谢
When you use the mshtml.dll reference in your project to show a browser
control, the scroll bars are not standard looking.. they are pretty much
flatish with a slight 3d appearence... is there any way to get them to
resemble normal looking scroll bars? thanks



什么是滚动条?

MS Herfried K. Wagner
MVP< URL:http:// dotnet。 mvps.org/>
VB< URL:http://dotnet.mvps.org/dotnet/faqs/>



What scrollbars?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



嗨Brian,


你的意思是当你导航的网页大于webbrowser

控件时,会显示滚动条吗?

我认为这是设计风格的默认设置(与IE窗口中的

滚动条相同),你是什么意思看起来很正常的滚动条?

你能附上一张图片来表明你的意图吗?

BTW:

我们可以使用下面的代码隐藏滚动条。

Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As

System.EventArgs)处理Button1.Click

Me.AxWebBrowser1.Navigate(" www.google。 com")

End Sub

Private Sub Button2_Click(ByVal sender As System.Object,ByVa le As

System.EventArgs)处理Button2.Click

Me.AxWebBrowser1.Document.body.scroll =" no"

Me。 AxWebBrowser1.Document.body.style.border =" none"

End Sub


祝你好运,


Peter Huang

Microsoft在线合作伙伴支持


安全! - www.microsoft.com/security

此帖子原样是按原样提供的。没有保证,也没有授予任何权利。

Hi Brian,

Do you mean when you navigate a webpage which is larger than the webbrowser
control, the scrollbar will be displayed?
I think the this is the default by design style(which is same with the
scroll bar in the IE window), what do you mean a normal looking scroll bar?
Can you attach a picture to show your intention?
BTW:
We can use the code below to hide the scrollbar.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate("www.google.com")
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Me.AxWebBrowser1.Document.body.scroll = "no"
Me.AxWebBrowser1.Document.body.style.border = "none"
End Sub

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


这篇关于microsoft.mshtml.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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