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";
}
}

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Aug 19, 2019, 8:59 PM EDT
Sonu GuptaRank #1,261 · 1.4K reputationPosted Aug 19, 2019, 9:33 PM EDT
Noor Ullah Jan10 reputationPosted Aug 19, 2019, 10:37 PM EDT
Sonu GuptaRank #1,261 · 1.4K reputationPosted Aug 19, 2019, 11:44 PM EDT
Noor Ullah Jan10 reputationPosted Aug 20, 2019, 12:10 AM EDT
James AxsomRank #4,887 · 320 reputationPosted Sep 27, 2019, 3:49 PM EDT