microsoft.mshtml.dll

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

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 said:
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

What scrollbars?
 
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.
 
Brian,

Can it be that it is just some slow behaviour, there are so many interfaces
in that class, that opening that browser for me is always a crime.

Cor

"Brian Henry"
 
* "Brian Henry said:
example of what they look like attached... im seeing them looking like they
do in #1, but the standard look is #2, #1 looks flatter then #2, which is
inconsistant to the system style of scrollbar.. what I want is for it to
match the system style and not be a flatter style.

Normally the flatter style is used in fullscreen mode (F11 in MSIE).
 
yes, however it seems to be appearing when it's in a single control
though... not sure how to change it though...
 
what do you mean by slow behaviour? what it is showing is pretty much what
you can achieve with a custom scrollbar CSS style... just im not applying
any so I'd expect the standard one to show up. (this shows up like this even
with no web pages loaded in it)
 
Hi Brian,

Did the problem persist with all the web page?
Have you tried to navigate to the website(www.google.com)? Because there is
also a possibility that the client script in the webpage may change the
scrollbar style.

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.
 
Hi Brian,

Since I can not reproduce the problem, it is hard to guess what has
happened. Firstly, you may try to run the winapp on other machines to see
if the problem persists.
If no, I think the problem will specified the the machine, have you changed
any windows style( in the Control panel/Display/Themes or Appearance).

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.
 
nevermind i figured it out, was sending a WM_FLATSCROLLBAR message to the
host container
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top