Bonjour à tous,
comment est ce que je pourrai ouvrir plusieurs form
à partir d'un thread ??
Merci
Version imprimable
Bonjour à tous,
comment est ce que je pourrai ouvrir plusieurs form
à partir d'un thread ??
Merci
:roll:Code:
1
2 Form formulaire = new Form(); formulaire.Show();
Code:
1
2
3
4
5 public void Something() { Form f = new Form(); f.Show(); }
comment je met ceci dans un thread ??
mon problème était dans les paramètres de la méthodeCode:
1
2
3
4
5
6
7
8
9
10 System.Threading.ThreadStart ts = new System.Threading.ThreadStart(showForm); System.Threading.Thread tt = new System.Threading.Thread(ts); tt.Start(); private void showForm() { frm1 = new form1(str1, strUrl); frm1.Show(); }
merci en tout cas .. :mouarf:
:resolu: ?