Annoying Vertical ScrollBar 
Author Message
 Annoying Vertical ScrollBar

Hi,

Using Microsoft WebBrowser Control, I tried alot to get rid of left hand
side scroll bar which web browser control always shows even if i have very
small html file, it shows a disabled svrollbar at the right hand side.

If anyone knows how to get rid of  that vertical scrollbar that would be
greately appreciated.

Thanks in advance,
Ali



Sun, 24 Oct 2004 21:24:12 GMT  
 Annoying Vertical ScrollBar

Quote:
> Using Microsoft WebBrowser Control, I tried alot to get rid of left
> hand side scroll bar which web browser control always shows even if i
> have very small html file, it shows a disabled svrollbar at the right
> hand side.

> If anyone knows how to get rid of  that vertical scrollbar that would
> be greately appreciated.

This will remove the scroll bars

   ' Change WebBrowser1 with the name of your control
   WebBrowser1.Document.body.Scroll = "no"

Add it to the NavigateComplete2 event.

--
Eduardo A. Morcillo [MS MVP VB]
http://www.domaindlx.com/e_morcillo



Mon, 25 Oct 2004 08:49:58 GMT  
 Annoying Vertical ScrollBar
This is what I use:
WebBrowser1.Navigate "about:<html><body scroll='no'><img src='" & App.Path &
"\bar.gif'></img></body></html>"

I just pass html to the WebBrowser Control before it loads the image or page
works great for me

Mike



Quote:
> > Using Microsoft WebBrowser Control, I tried alot to get rid of left
> > hand side scroll bar which web browser control always shows even if i
> > have very small html file, it shows a disabled svrollbar at the right
> > hand side.

> > If anyone knows how to get rid of  that vertical scrollbar that would
> > be greately appreciated.

> This will remove the scroll bars

>    ' Change WebBrowser1 with the name of your control
>    WebBrowser1.Document.body.Scroll = "no"

> Add it to the NavigateComplete2 event.

> --
> Eduardo A. Morcillo [MS MVP VB]
> http://www.domaindlx.com/e_morcillo



Tue, 09 Nov 2004 23:49:55 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Annoying Vertical ScrollBar

2. Annoying Vertical ScrollBar

3. Annoying Vertical ScrollBar

4. Blinking scrollbar -- how annoying is that?

5. Datagrid Vertical Scrollbar

6. DataGrid Vertical ScrollBar Always On?

7. Using several listboxes with 1 vertical scrollbar (result of query)

8. help...with listbox's vertical scrollbar..

9. vertical scrollbar

10. Controling Vertical Scrollbar

11. ListView sorting with vertical scrollbar.

12. PictureBox and Vertical, Horizontal ScrollBar

 

 
Powered by phpBB® Forum Software