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

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)
 
C

ClayB

You can try calling Application.DoEvents inside your loop to see if
this will give you the behavior you want.
====================
Clay Burch
Syncfusion, Inc.
 
E

Elmo Watson

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top