Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

scrolling down with a webbrowser control

Posted on 2003-03-11
1
Medium Priority
?
268 Views
Last Modified: 2013-12-25
Hi

I'm making a chat program with winsock that outputs messages to the end of an HTML file, which displays in a webbrowser component. I need to tell the webbrowser to scroll down to the bottom of the HTML page every time I receive new data (using the winsock DataArrival event), but I can't access the position of the webbrowser's scroll bar. There doesn't seem to be a property for the webbrowser component that allows me to read/adjust where the scrollbar is set to.

I tried always writing an anchor at the end of the HTML file, and then running webbrowser1.Navigate("pagename.html#anchorname), but then the page just stops refreshing altogether. Is there a way around this problem I haven't thought of?

Thanks
0
Comment
Question by:dedesk
1 Comment
 
LVL 5

Accepted Solution

by:
Rhaedes earned 240 total points
ID: 8114166
Try using:
WebBrowser1.Document.body.scrollTop = 9999999
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month13 days, 9 hours left to enroll

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question