Re: How to check for scroll bars in web browser object?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx> wrote in message
news:ezTL8DVOFHA.2348@xxxxxxxxxxxxxxxxxxxxxxx
> "Brett" <no@xxxxxxxx> schrieb:
>> I'm using the web browser object: SHDocVw.dll. I do this in form Load()
>>
>> Me.AxWebBrowser1.Navigate("http://www.abc.com/";)
>>
>> Sometimes when a website loads, it causes horizontal or vertical scroll
>> bars in the web browser window. How can I detect these? I'm assuming
>> they will be completely run time since they do not appear until after the
>> webpage loads.
>
> The scrollbars are part of the document which is shown inside the control.
> You can remove them in the 'DocumentComplete' event using
> 'Me.WebBrowser1.Document.body.scroll = "no"'.
>

The above line gives a run-time error because intellisense doesn't show
anything after document.

I'm trying to set a certain width and detect if the webpage has gone past
that width. I can set my form to say 800 width. If the webpage is wider,
it will scroll out of viewing area tothe right, as the web browser object
seems to grow dynamically. It will grow past the form width depending on
the web page. How can I check for that?

Thanks,
Brett


.



Relevant Pages

  • Re: strange internet problem
    ... I've been getting pretty frustrated over this because every other computer on the network works normally for all network activity and internet access. ... If I make a web browser request you'll see perhaps just a couple k of activity and then many many seconds later you'll see what appears to be normal activity when a page loads. ...
    (microsoft.public.windowsxp.network_web)
  • Any Luck Making a SLES9 Browser Kiosk?
    ... Anyone have any luck making a SLES9 kiosk that loads a web browser and ... locks a user into that? ... Mind sharing your notes here? ...
    (alt.os.linux.suse)
  • Page cannot be displayed
    ... and cleared my cache and cookies. ... and the page loads without a problem. ... web browser or how windows is handling the web browsers. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • How to check for scroll bars in web browser object?
    ... I'm using the web browser object: ... Sometimes when a website loads, it causes horizontal or vertical scroll bars ...
    (microsoft.public.dotnet.languages.vb)
  • Re: pick up a value in MOSS 2007 with a macro inExcel 2007
    ... Your share point is a webpage the you are accessing using a web browser. ... What I m looking for is quite easy: I m want the code for a macro in excel ...
    (microsoft.public.excel.misc)