Results 1 to 5 of 5

Thread: Auto Scroll Web Control?

  1. #1

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472

    Auto Scroll Web Control?

    Thats basically it.. I want to be able to auto-scroll a web control just as you do with textboxes in chat programs for instance...

    Like here hoow you would do what I want with a RTB:
    VB Code:
    1. RichTextBox1.SelStart = Len(RichTextBox1.Text)

    so possible to do with the browser control?

    thanks
    sac

  2. #2

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    come on has to be some way to do this..
    I tried using javascript to do it
    function redirect(){
    parent.location.href="#top"
    }
    but it is hard to work with when im constantly adding in new text to the document..

    any suggestions??

  3. #3
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    You could use SendKeys to send the CTRL+END key combination, i.e.
    VB Code:
    1. Private Sub Command1_Click()
    2.   WebBrowser1.SetFocus
    3.   SendKeys "^{END}"
    4. End Sub

  4. #4

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    Hey, I was able to use the HTML afterall, but I thank you for your code... it also works

  5. #5
    New Member
    Join Date
    Jul 2006
    Posts
    13

    Re: Auto Scroll Web Control?

    Hi Sacofjoea,
    It' long time for your topic, but could u tell me how to autoscroll with web browser control.
    TKS

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