thanks Paul, i will research this.
> > i want to use the "textbox" to give realtime update
> > [...]
[quoted text clipped - 6 lines]
>
> Eq.
>> i want to use the "textbox" to give realtime update
>> [...]
[quoted text clipped - 4 lines]
> update properly. Use the BackgroundWorker control, or create a separate
> thread to do the long-running task.
Auldh has the better answer, but for something quick and dirty, you might
want to put some "Application.DoEvents()" in at various points (i.e. where
you put in the Refresh()) - this will enable the UI to update.
Peter Duniho - 13 Mar 2008 18:20 GMT
> Auldh has the better answer, but for something quick and dirty, you
> might want to put some "Application.DoEvents()" in at various points
> (i.e. where you put in the Refresh()) - this will enable the UI to
> update.
Please do not recommend Application.DoEvents() when there are other,
superior alternatives available. It's not something to be used in a
well-written program and is not appropriate as a recommendation.
If you observe a situation where the _only_ way to solve the problem is
calling DoEvents(), by all means suggest it. Otherwise, you're only
encouraging sloppy programming practices and that's not something that any
responsible person should want to do.
Pete