
Remove ScrollBars from WebBrowser control
Put the WebBrowser control in a PictureBox:
Private Sub Form_Resize()
Picture1.Appearance = 0
Picture1.BorderStyle = 0
Picture1.ScaleMode = vbPixels
WebBrowser1.Move -2, -2, Picture1.Width + 4, Picture1.Height + 4
End Sub
Rob
Quote:
> Thanks! That worked great! Neat trick. Now if I could just get rid of the
3D
> look to the top and left border. I've tried making the WebBrowser control
> slightly larger than the Form itself --even though I have the Form flat
> property = True. So I know its the WebBrowser control that is providing
the
> 3D effect I want to get rid of. You wouldn't know how to get rid of it as
> well would you?
> BB
> > If the design of the HTML page is within your control, try
> > <style type="text/css">
> > body {overflow:visible}
> > </style>
> > Barry Evans
> > Canberra, Australia
> > --
> > Is there any way to remove the WebBrowser control's right hand scroll
bar?
> > The initial window of my app is really a borderless form with a
WebBrowser
> > control displaying a web page that makes up the initial window. But the
> > display of the scroll bar --even though no portion of the page being
> > displayed is scrollable-- distracts from the interface. Is there a way
to
> > remove the scroll bar? Perhaps via some API trick?
> > Thanks!
> > BB