beginnnner
Programmer
Hi,I am a total beginner in C# so i decided to learn it myself because i have programming expirience in other programming languages,
i was about to write my(i think) 10. application in C# and i stucked,its a simple question :
How can i add two numbers,i tried :
i seted up 2 text boxes (textBox1 and 2) one button (Button1) and a label (Label1)
void Button1Click(object sender, System.EventArgs e)
{
string se = this.textBox1.Text ;
Convert.ToDecimal(se);
string se1 = this.textBox2.Text ;
Convert.ToDecimal(se1);
this.label1.Text = se + se1 ;
}
But i get result (6 + 3 = 63),anyone help??
i was about to write my(i think) 10. application in C# and i stucked,its a simple question :
How can i add two numbers,i tried :
i seted up 2 text boxes (textBox1 and 2) one button (Button1) and a label (Label1)
void Button1Click(object sender, System.EventArgs e)
{
string se = this.textBox1.Text ;
Convert.ToDecimal(se);
string se1 = this.textBox2.Text ;
Convert.ToDecimal(se1);
this.label1.Text = se + se1 ;
}
But i get result (6 + 3 = 63),anyone help??