?
Solved

webbrowser control does not display

Posted on 2011-02-16
3
Medium Priority
?
649 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 1500 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

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

771 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