This should be easy to fix but I cant fig it out.
I have 3 textboxes one below the other as a example. I tried textbox change
It works fine if I enter in order but if the user is out of order the math is wrong.
Is there a work around?
TXT1 - TXT2 = Correct answer
TXT2 - TXT1 = Wrong answer
private void CalcTotal(object sender, EventArgs e)
{
if (int.TryParse(txt_BackedOut.Text, out int i) && int.TryParse(txt_TOTAL.Text, out int j) && int.TryParse(txt_Online.Text, out int t))
textBox1.Text = (j - i - t).ToString();
}
