Results 1 to 3 of 3

Thread: [2005] How To Scroll To Bottom Of Web Browser Control?

  1. #1

    Thread Starter
    Addicted Member GedOfEarthsea's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    145

    Question [2005] How To Scroll To Bottom Of Web Browser Control?

    Hello, I am working on a project that uses the web browser control. It is a quick chat / im program using html. I made it all secure and encrypted and it is nearly finished but for a few things. One thing that it needs is scrolling to the bottom of the document when it refreshes. How do you make a web browser scroll all the way to the bottom?

    Thanks

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2005] How To Scroll To Bottom Of Web Browser Control?

    Quote Originally Posted by GedOfEarthsea
    Hello, I am working on a project that uses the web browser control. It is a quick chat / im program using html. I made it all secure and encrypted and it is nearly finished but for a few things. One thing that it needs is scrolling to the bottom of the document when it refreshes. How do you make a web browser scroll all the way to the bottom?

    Thanks
    Hi,

    Here's a link how to use scrollbars with a webbrowser;

    http://msdn2.microsoft.com/en-us/lib...ed(VS.80).aspx

    Hope it helps,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3

    Thread Starter
    Addicted Member GedOfEarthsea's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    145

    Re: [2005] How To Scroll To Bottom Of Web Browser Control?

    Quote Originally Posted by sparrow1
    Hi,

    Here's a link how to use scrollbars with a webbrowser;

    http://msdn2.microsoft.com/en-us/lib...ed(VS.80).aspx

    Hope it helps,

    sparrow1
    VB Code:
    1. 'Visual Basic (Declaration)
    2.  
    3. Public Property ScrollBarsEnabled As Boolean
    4.  
    5. 'Visual Basic (Usage)
    6.  
    7. Dim instance As WebBrowser
    8. Dim value As Boolean
    9.  
    10. value = instance.ScrollBarsEnabled
    11.  
    12. instance.ScrollBarsEnabled = value

    I don't really understand this code. I think it just enables the scrollbars to the web browser. I have already done that, and that Public Property gives me an error.

    I did, however find this:
    VB Code:
    1. Webbrowser.Document.Window.ScrollTo(0, 100000)
    I just use that when the message is sent it works fairly well, but it does not scroll all the way to the bottom for some reason.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width