Solved

webbrowser control does not display

Posted on 2011-02-16
3
648 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

728 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