Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Vb6] WebBrowser disable scrollbars


MadalinV
 Share

Recommended Posts

> How about you post the code you tried here along with the error?

I tried this:

```
WebBrowser1.document.body.setattribute "scroll", "no"
```
(I changed WebBrowser1 to the name of the WebBrowser control.)

And got error:

> Run-time error '91':
>
> Object variable or With block variable not set

And this:

```
Me.WebBrowser1.ScrollBarsEnabled = False
```
And got error:

> Run-time error '438':
>
> Object doesn't support this property or method.
Link to comment
Share on other sites

From what I've read, the WebBrowser control utilizes the Internet Explorer frame therefore in order to remove the scroll bars you'd have to do the same for IE. I've also read you can use HTML tags to remove the scroll bars inside the _Navigate_ method of the WebBrowser. Try giving that a shot and if that doesn't work I guess you are out of luck.
Link to comment
Share on other sites

> From what I've read, the WebBrowser control utilizes the Internet Explorer frame therefore in order to remove the scroll bars you'd have to do the same for IE. I've also read you can use HTML tags to remove the scroll bars inside the _Navigate_ method of the WebBrowser. Try giving that a shot and if that doesn't work I guess you are out of luck.

Maybe a tutorial? where do I put these tags, on the website, or in the code? and what code do i put and where? (I need this for Joyce's Fixed Updater)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...