I'd spawn another thread (by creating a Thread instance and calling Start). Then have the thread report its progress via Form.BeginInvoke
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<u#**************@TK2MSFTNGP11.phx.gbl>
Hi,
My application need to do some initialization before it can be used
I want to display a form with the status of initialization for example:
"connection to data base..."
"loading settings....."
"registering user..."
etc...
I am thinking about using Thread.QueueUserWorkItem
to run each method
and in the end of each Thread function to Queue the next method
is this a right way?
thanks.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
[microsoft.public.dotnet.languages.csharp]