Solved

webbrowser control does not display

Posted on 2011-02-16
3
643 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

11 Experts available now in Live!

Get 1:1 Help Now