|
-
Apr 8th, 2003, 06:31 PM
#1
Thread Starter
Frenzied Member
Scroll A Web Browser Control To The End Of The Document? [Solved]
Hey ya, i know i can scroll a web browser document to the end by using:
VB Code:
brwMessage.SetFocus
SendKeys "^{END}"
BUT: is there a way to do this WITHOUT having to set focus onto the browser?, because i really dont want the focus to b lost on other forms / applications when this happens....
ne how, thanks
Wayne
Last edited by wpearsall; Apr 8th, 2003 at 07:46 PM.
Wayne
-
Apr 8th, 2003, 07:24 PM
#2
Use the ScrollTo method of the parentWindow for the Document, i.e.
VB Code:
With WebBrowser1.Document.parentWindow
Call .ScrollTo(0, .Screen.AvailHeight)
End With
-
Apr 8th, 2003, 07:45 PM
#3
Thread Starter
Frenzied Member
-
Apr 8th, 2003, 07:48 PM
#4
Thread Starter
Frenzied Member
OK: Jst searched for .setfocus, and yup, right after i called the sub to write to the web browser, i add the set focus on the web browser control 
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|