private void contextBox_TextChanged(object sender, EventArgs e) {
if (TotaltextBox.Text != "" && contextBox.Text != "" && RecivedtextBox.Text!="")
{
Decimal totalPricetopay = Convert.ToDecimal(TotaltextBox.Text) - Convert.ToDecimal(contextBox.Text);
Decimal total = Convert.ToDecimal(TotaltextBox.Text) - Convert.ToDecimal(RecivedtextBox.Text);
BalancetextBox.Text = totalPricetopay.ToString();
}
else
{
BalancetextBox.Text = "0";
}
}


James AxsomPosted Sep 27, 2019, 7:49 PM