Lentdave67t <le*********@aol.comnospam> wrote:
Thank you in advance for any help you can provide. I am writing a C#
program that checks to see if the URLs of favorites/bookmarks are
still good. The problem I am having is that while the program is
checking the URLs, the text in a label on the current window will not
update until after all URLs are checked. I think the Form/Window is
frozen while the http requests are occuring. Does anyone know of a
way I can update the Form in real time while checking the URLs.
You need to check the URL in a different thread, noting that you should
only ever update the UI from the UI thread using Control.Invoke. The
preferred way of "running" a form is to use Application.Run(form) by
the way.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too