Groups | Blog | Home
all groups > dotnet compact framework > august 2004 >

dotnet compact framework : Treads


Ali
8/8/2004 3:21:03 PM
You can use the control.invoke method to access an event handler in the
thread and use it to kill the thread that has that control.

Ali Gardezi

[quoted text, click to view]
Ghost
8/8/2004 11:29:15 PM
Hello.
How can I check if tread in Compact Framework is alive or how can I
interrupt it?

Ali
8/9/2004 1:35:01 AM
BusyScreen bs; //The busy screen form displayed in a seperate thread

Thread t=new Thread(runThread)
t.start();
/*Do something else in main thread. When you want to stop the above
*thread (assuming the BusyScreen class has a method called
*KillMe(object o ,EventArgs e) which calls this.Dispose(); and this.Close();
*in order to stop the form and kill the thread
*/
bs.invoke(new EventHandler(bs.KillMe));

public static void runThread()
{
bs=new BusyScreen();
Application.Run(bs);
}


[quoted text, click to view]
Ghost
8/9/2004 10:52:05 AM
How?
Can you show me some examples please?

[quoted text, click to view]

AddThis Social Bookmark Button