Bonjour, comme rien ne fonctionnais, j'ai tout repris à 0 et j'ai incrémenter plusieurs text box à la suite et j'ai reunis le tout ...
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 private void timer1_Tick(object sender, EventArgs e) { if (checkBox1.CheckState == CheckState.Unchecked) { textBoxtotal.Text = textBox100.Text + textBox101.Text + textBox102.Text + textBox103.Text + textBox104.Text + textBox105.Text + textBox106.Text + textBox107.Text + textBox108.Text + textBox109.Text + textBox110.Text + textBox111.Text + textBox112.Text + textBox113.Text + textBox114.Text + textBox115.Text + textBox116.Text + textBox117.Text + textBox118.Text + textBox119.Text + textBox6.Text + textBox5.Text + textBox4.Text + textBox3.Text + textBox2.Text + textBox1.Text; using (System.IO.StreamWriter file = new System.IO.StreamWriter("C:\\ListeAvecTID.txt", true)) { file.WriteLine(textBoxtotal.Text); } if (textBoxtotal.Text.Equals(textBoxfincid.Text)) { timer1.Stop(); } richTextBox1.Text += Environment.NewLine + textBoxtotal.Text; } else { textBoxtotal.Text = textBox119.Text + textBox6.Text + textBox5.Text + textBox4.Text + textBox3.Text + textBox2.Text + textBox1.Text; using (System.IO.StreamWriter file = new System.IO.StreamWriter("C:\\ListeSansTID.txt", true)) { file.WriteLine(textBoxtotal.Text); } if (textBoxtotal.Text.Equals(textBoxFingenSTIG.Text)) { timer1.Stop(); } richTextBox1.Text += Environment.NewLine + textBoxtotal.Text; }
