DelphiFAQ Home Search:
General :: Programming :: Delphi :: Network
Network (local network and Internet) programming under Windows with Delphi.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Featured Article

Hide scrollbars in a TWebBrowser

Question:

How can I hide the scrollbars in my TWebBrowser component?

Answer:

There are two properties in the Document.Body.Style property, named OverflowX and OverflowX. Simply set them to 'hidden' as shown in the code snippet below.

For more information on the TWebBrowser's document properties, see the other tips listed at the top.

begin
   // .. 

   with WebBrowser1.Document.Body.Style do
   begin
     OverflowX := 'hidden';
     OverflowY := 'hidden';
   end; { with WebBrowser1 }
 
   // ..
end;
You don't like the formatting? Check out SourceCoder then!
Generated 4:01:15 on Aug 14, 2018