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)

Re: is there a 'flush' type method in VB.Net by ClayB

ClayB
Fri Apr 20 11:05:23 CDT 2007

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


Re: is there a 'flush' type method in VB.Net by Elmo

Elmo
Sun Apr 22 23:31:57 CDT 2007

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!



"ClayB" <clayb@syncfusion.com> wrote in message
news:1177085123.563630.56910@l77g2000hsb.googlegroups.com...
> You can try calling Application.DoEvents inside your loop to see if
> this will give you the behavior you want.
> ====================
> Clay Burch
> Syncfusion, Inc.
>