I ve to add two numbers.....which is in Labels,so that labels s in sting..I ve applied the following code convert it to int..
int a=convert.Toint32(Label.text);
It does not work.
I m working in Visual Studio 12....
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Feb 24, 2013, 1:14 AM
{
double a, b, c;
a = Convert.ToDouble(textBox1.Text);
b = Convert.ToDouble(textBox2.Text);
c = a + b;
label1.Text = c.ToString();
}