Bonjour, plutot qu'un long discour:
Code C# : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 void myButton_Click(object sender, EventArgs e) { System.Threading.ThreadStart myStart = new System.Threading.ThreadStart(StartThread); System.Threading.Thread myThread = new System.Threading.Thread(myStart); myThread.Start(); } void StartThread() { Instructions(); }
Ma question est de savoir si le thread est toujours actif apres avoir termine la fonction StartThread(), ou si je suis suppose "tuer" le thread moi meme...
merci ;-)
Partager