Groups | Blog | Home
all groups > dotnet windows forms > april 2007 >

dotnet windows forms : is there a 'flush' type method in VB.Net


ClayB
4/20/2007 9:05:23 AM
You can try calling Application.DoEvents inside your loop to see if
this will give you the behavior you want.
====================
Clay Burch
Syncfusion, Inc.
Elmo Watson
4/20/2007 10:32:33 AM
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)

Elmo Watson
4/22/2007 11:31:57 PM
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!



[quoted text, click to view]

AddThis Social Bookmark Button