private void txtTaxPer_TextChanged(object sender, EventArgs e)
{
try
{
if (string.IsNullOrEmpty(txtTaxPer.Text))
{
txtTaxAmt.Text = "";
txtTotal.Text = "";
return;
}
txtTaxAmt.Text = Convert.ToInt32((Convert.ToInt32(txtSubTotal.Text) * Convert.ToDouble(txtTaxPer.Text) / 100)).ToString() ;
txtTotal.Text = (Convert.ToInt32(txtSubTotal.Text) + Convert.ToInt32(txtTaxAmt.Text)).ToString();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
Francis SusaimichaelPosted Oct 13, 2015, 5:48 AM
Priyaranjan K SPosted Oct 13, 2015, 12:38 AM
David LarangaPosted Oct 13, 2015, 12:37 AM
Priyaranjan K SPosted Oct 13, 2015, 12:34 AM
David LarangaPosted Oct 13, 2015, 12:28 AM
Rajeesh MenothPosted Oct 13, 2015, 12:03 AM
Priyaranjan K SPosted Oct 12, 2015, 11:02 PM
Priyaranjan K SPosted Oct 12, 2015, 10:49 PM