Asad khan

Asad khan

  • NA
  • 208
  • 98.5k

error: input string was not a correct format

Nov 30 2018 9:05 PM
private void txtdiscountallowed_TextChanged(object sender, EventArgs e)
{
double discount = Convert.ToDouble(txtdiscountallowed.Text);
double sprice = Convert.ToDouble(txtSalesPrice.Text);
double Nudiscount = sprice * discount / 100;
txtCostPrice.Text = (sprice - Nudiscount).ToString();
}
 

Attachment: dis.zip

Answers (2)