Important alert: (current site time 12/19/2014 9:36:32 PM EDT)
 

article

help* auto scroll webbrowser

Email
Submitted on: 3/26/2005 6:16:28 PM
By: Jett Walson  
Level: Beginner
User Rating: By 1 Users
Compatibility: VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, VB Script
Views: 10133
author picture
(About the author)
 
     i need help with a program that I am currently devoloping, I need it to automaticly scroll to a certain point in a webbrowser control, can anyone tell me if this is possible and, if so, how? PS: I'm not very good at API and i'm assuming it's possible with API email me @ jettprograms [@] gmail [.] com or just post a comment

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
				i need help with a program that I am currently devoloping, I need it to automaticly scroll to a certain point in a webbrowser control, can anyone tell me if this is possible and, if so, how?
PS: I'm not very good at API and i'm assuming it's possible with API
email me @ jettprograms [@] gmail [.] com or just post a comment


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

3/26/2005 6:52:02 PM

If need_scroll = True Then
webbrowser1.Document.parentWindow.scrollTo 0, webbrowser1.Document.body.scrollHeight
End If
(If this comment was disrespectful, please report it.)

 
3/26/2005 6:56:07 PM

if this works thank you so much! im guna try it

(If this comment was disrespectful, please report it.)

 
3/26/2005 7:01:00 PM

i cant figure out how to specify where to scroll, can you EMail me the code so it's properly formatted (because pscode messes up the formatting)
(If this comment was disrespectful, please report it.)

 
3/26/2005 7:25:15 PM

nevermind, got it working 100%... what should i call u when i give you credit in the program for the help? :)
(If this comment was disrespectful, please report it.)

 
3/28/2005 6:48:34 PMGoodVillain

Ted Nugent
(If this comment was disrespectful, please report it.)

 
9/6/2006 6:36:44 AMRegX

This works in instances where
Document.body.setAttribute "scrollTop", 320 does not.
The above seems to break depending on the content. Is there a way to get the scroll position that is as reliable?
Document.body.getAttribute ("scrolltop") does not always work.

Also, is there a way to pageUp, pageDown
that always works.

Document.body.doScroll ("scrollbarPageDown") does not always work.
(If this comment was disrespectful, please report it.)

 
1/18/2008 1:43:45 AMdolphinKarthi

Please Use Sendkeys to scroll IE

Ctrl+Alt+Shift+ (Up/Down) Arrows
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.