Greetings
A tax code is written in a box and then pressing a button, the translation will appear in the other boxes taxes?
Thanks
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.
Iftikar HussainPosted Jun 25, 2013, 3:25 AM
I have downloaded your executable file and when I parse any text its just showing me the same output with one rectangle box at last. What exactly you want in your code?
Regards,
Iftikar
hoda AbediPosted Jun 25, 2013, 2:35 AM
Thanks
No, please download the executable and then type a few lines of code in the C language to understand its meaning.
Thank you for your attention
Jignesh TrivediPosted Jun 24, 2013, 11:15 PM
Can you please provide more information on same?
do you want to copy data of one text box to other text box with processing data of first text box?
VulpesPosted Jun 24, 2013, 9:05 AM
private void btnCalculate(object sender, EventArgs e)
{
decimal grossIncome;
bool isValid = decimal.TryParse(txtGrossIncome.Text, out grossIncome);
if (!isValid || grossIncome < 0)
{
MessageBox.Show("Income is not a valid number. Please amend.");
txtGrossIncome.Focus();
return;
}
decimal taxRate;
isValid = decimal.TryParse(txtTaxRate.Text, out taxRate);
if (!isValid || taxrate < 0 || taxrate >= 100)
{
MessageBox.Show("TaxRate is not a valid number. Please amend.");
txtTaxRate.Focus();
return;
}
decimal taxPayable = Math.Round(grossIncome * taxRate / 100m);
txtTaxPayable.Text = taxPayable.ToString();
txtNetIncome.Text = (grossIncome - taxPayable).ToString();
}