A
Anders Eriksson
Hello!
I have a form from which I start an thread running in the background and I
want to have an event when the thread is done/ends.
I start the thread like this:
private Thread prT; // this is a member of the Form1 class
// in a Form1 member function I do:
PrintThread prThread = new PrintThread(prJob.Document);
prT = new Thread (new ThreadStart (prThread.Execute));
prT.IsBackground = true;
prT.Start();
How do I create an event when the thread ends?
// Anders
I have a form from which I start an thread running in the background and I
want to have an event when the thread is done/ends.
I start the thread like this:
private Thread prT; // this is a member of the Form1 class
// in a Form1 member function I do:
PrintThread prThread = new PrintThread(prJob.Document);
prT = new Thread (new ThreadStart (prThread.Execute));
prT.IsBackground = true;
prT.Start();
How do I create an event when the thread ends?
// Anders