Removing scrollbars from a web browser

How to remove scrollbars from a web browser control using VB6?

+3
source share
3 answers

Refer to the WebBrowser.DocumentComplete Event :

Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, ByVal URL As Object)
        WebBrowser1.Document.body.Scroll = "no"
End Sub
+6
source

try it

WebBrowser1.Document.body.setattribute "scroll", "no"

Source

+2
source

on the page you want to load, add this to the body tag: <body scroll='no'>

0
source

Source: https://habr.com/ru/post/1720462/


All Articles