Solved

webbrowser control does not display

Posted on 2011-02-16
3
645 Views
Last Modified: 2012-06-22
My application collects data and then displays it in a webbrowser control.

The data collection is collected within a loop, and the webbrowser's document is re-written on each iteration.

After all the data is collected (and the loop is ended), the browser's document is re-written for the last time.

My problem... the browser doesn't show anything until the very end.  Sometime it will display the first iteration's data, but it never updates on every iteration.

Do
  If Not dataDone = True Then
    getData()
    getHTML
     webbrowser1.document.write(HTML)
  End If
Loop

getHTML
webbrowser.document.write(HTML)
0
Comment
Question by:motokent
  • 2
3 Comments
 

Author Comment

by:motokent
ID: 34906798
corrected pseudo-code...

Do
  If Not dataDone = True Then
    getData()
    getHTML
    webbrowser1.document.write(HTML)
  Else
    Exit Do
  End If
Loop

getHTML
webbrowser.document.write(HTML)
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 34922886
I believe that the problem is that you have a tight loop, and it doesn't allow the WebBrowser control the time to render each page correctly.  
0
 

Author Closing Comment

by:motokent
ID: 34934059
Thanks for the reply.  It doesn't really help, but it's hard to be critical since you're the only one who answered.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
consuming an asmx web service in winforms application 3 37
Entity Framework 7 41
VB.NET 2008 Populate DataModel with DataTable 44 28
Alert on Server memory 2 19
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

813 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now