how to do calculation?
Rent textbox 1000
Tax textbox 123.6
Grossrent textbox 1123.6
i type the rent amount from the rent calculate 12.36% for service tax.then add both rent and tax gives grossrent.
how to do that calculation.
Please help me.please give the code.
thanks,
Regards,
Narasiman P
Satyapriya NayakPosted Jun 21, 2012, 4:07 AM
private void button1_Click(object sender, EventArgs e)
{
decimal a, b, c;
a = Convert.ToDecimal(textBox1.Text);
b = Convert.ToDecimal(textBox2.Text);
c = a + b;
textBox3.Text=c.ToString();
}
Thanks