delphi – Is it possible to remove bearing from a TWebBrowser?


Is it possible to remove vertical and horizontal scrolling from a TWebBrowser ?

I searched in several places on the internet, however, I didn't find a valid answer, all the examples were false!


Disabling is kind of complicated, there is no property for this in the component! However, I can help you Hiding the bars…

Add these 2 lines of code to TWebBrowser's OnDocumentComplete:

WebBrowser1.OleObject.Document.Body.Style.OverflowX := 'hidden';
WebBrowser1.OleObject.Document.Body.Style.OverflowY := 'hidden';

With this, after loading the Page the bars are hidden!

Scroll to Top