double taxAmnt =0;
private void textBox2_TextChanged(object sender, EventArgs e)
{
if (chkTax.Checked)
{
taxAmnt = ((fAuctionProfit * Convert.ToDouble(txtTax.Text)) / 100);
}
else
{
taxAmnt = Convert.ToDouble(txtTax.Text);
}
txtNetProfit.Text = (fAuctionProfit - taxAmnt - bonusAmnt-serviceChrg ).ToString ();
}

Kunal VaishyaRank #990 · 2K reputationPosted Oct 8, 2012, 10:30 PM EDT
if (textBox2.TextLength > 0)
{
if (chkTax.Checked)
{
taxAmnt = ((fAuctionProfit * Convert.ToDouble(txtTax.Text)) / 100);
}
else
{
taxAmnt = Convert.ToDouble(txtTax.Text);
}
txtNetProfit.Text = (fAuctionProfit - taxAmnt - bonusAmnt - serviceChrg).ToString();
}
Sivaraman DhamodaranRank #40 · 34.5K reputationPosted Oct 8, 2012, 10:30 PM EDT
anil john153 reputationPosted Oct 8, 2012, 11:01 PM EDT