This is not enough detail in the question, but my gut feeling tells me this is a problem:
, 40,5, , . (). 40,5 , ,
, 40.5, 40.5.
, , $ . , , , .
textBox.Text Convert.ToDecimal textBox.Text.Replace("$",""). $ .
, :
decimal num1, num2, num3, total;
num1 = Convert.ToDecimal(SSubTotalTextBox.Text.Replace("$",""));
num2 = Convert.ToDecimal(SubTotalMTextBox.Text.Replace("$",""));
num3 = Convert.ToDecimal(SubTotalTextBox3.Text.Replace("$",""));
total = num1 + num2 + num3;
TotalAmountTextBox.Text = "$ "+ total;
, Convert.ToDecimal decimal.Parse decimal.TryParse , .