How to addition subtraction division multiplication Texbox Values in C#

How to Addition Subtraction Division Multiplication Textbox Values in C#

User Interface Design

Addition Textboxes Values

Addition Textboxes Values in C# Code

 private void button1_Click(object sender, EventArgs e)
{
double t = Convert.ToInt32(add1textBox.Text.ToString());
double s = Convert.ToInt32(add2textBox.Text.ToString());
add3textBox.Text = Convert.ToString(t + s);
}

Subtraction Your Heading Text Here

Subtraction Textboxes Values in C# Code

private void button2_Click(object sender, EventArgs e)
{

double t = Convert.ToInt32(sub1textBox.Text.ToString());
double s = Convert.ToInt32(sub2textBox.Text.ToString());
sub3textBoxsub.Text = Convert.ToString(t – s);
}

Division Textboxes Values

Division Textboxes Values in C# Code

private void button3_Click(object sender, EventArgs e)
{

double t = Convert.ToInt32(div1textBox.Text.ToString());
double s = Convert.ToInt32(div2textBox.Text.ToString());
div3textBox.Text = Convert.ToString(t / s);

}

Multiply Textboxes Values

Multiply Textboxes Values in C# Code

private void button4_Click(object sender, EventArgs e)
{

double t = Convert.ToInt32(mul1textBox.Text.ToString());
double s = Convert.ToInt32(mul2textBox.Text.ToString());
mil3textBox.Text = Convert.ToString(t * s);
}

.


Download Source Code


Click here More Projects