Home > Internet / LAN > How to Hide TWebBrowser Scrollbars

How to Hide TWebBrowser Scrollbars

December 15th, 1999 m3Rlin Leave a comment Go to comments

If you want to block the ability to use scrollbars in TWebBrowser then you can simply hide them. Here’s the code that’ll do that.

...
with WebBrowser1.OleObject.Document.Body.Style do
  OverflowX := 'hidden';
  OverflowY := 'hidden';
end;
...
  1. No comments yet.