trint <tr***********@gmail.com> wrote:
I need to know what the safest way to loop(without starting off in a
new thread since UI controls are involved) is...and how to
pause in the loop so that the program runs normally.
Unless your code is pretty much *purely* UI calls, you should use a
thread, and use Control.Invoke to marshall calls back to the UI when
you need to.
If you really are doing a huge amount of work that's just UI calls, you
could use Application.DoEvents, but personally I'd try to avoid that
and use another thread.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too