is there a 'flush' type method in VB.Net

  • Thread starter Thread starter Elmo Watson
  • Start date Start date
E

Elmo Watson

Here's the scenario -
I'm iterating through a directory, dynamically adding picturebox controls to
a container, with a For Loop
On screen, you don't see anything until it actually fully populates

In ASP.Net, there is a command - Response.Flush - you can put this before
the end of the loop, to make the page show what's just been done.

Is there anything like this in VB.Net?

(I hope I've fully explained the need)
 
You can try calling Application.DoEvents inside your loop to see if
this will give you the behavior you want.
====================
Clay Burch
Syncfusion, Inc.
 
Doah!!!

in vb6, I used Doevents, but thought it went away in DotNet! The first time
I tried it (naturally, without 'application.'), it threw an error and I
couldn't get any further with it...

Thanks - I can't believe I missed that!
 
Back
Top