ChristosS ChristosS - 1 year ago 105
C# Question

Wrong code excecution order C#

The programm always excecute the second command first and I don't know why...Is this a bug or is there somthing wrong with the code??

answer += x;
this.textBox3.Text = Convert.ToString(answer);
this.lbl2.Text += (Convert.ToString(x));
this.lbl2.Text += (" + "); // This is excecuted first

Answer Source

Provided information is not sufficient. But what I get is you have to use string.Format for string formatting. I hope it will work for you.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download