title: system format error when converting to decimals
body: <p>error code at: <code>Decimal price = Decimal.Parse(txtprice.Text);</code></p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
      {
          decimal height1 = decimal.Parse(txtnorthheight.Text);
  
          decimal length1 = decimal.Parse(txtnorthlength.Text);
  
          decimal area1 = height1 * length1;
  
          lblnortharea.Text = area1.ToString("n");
  
          decimal height2 = decimal.Parse(txtsouthheight.Text);
  
          decimal length2 = decimal.Parse(txtsouthlength.Text);
  
          decimal area2 = height2 * length2;
  
          lblsoutharea.Text = area2.ToString("n");
  
  
          decimal height3 = decimal.Parse(txteasthheight.Text);
  
          decimal length3 = decimal.Parse(txteasthlength.Text);
  
          decimal area3 = height3 * length3;
  
          lbleastarea.Text = area3.ToString("n");
  
  
          decimal height4 = decimal.Parse(txtwesthheight.Text);
  
          decimal length4 = decimal.Parse(txtwestlength.Text);
  
          decimal area4 = height4 * length4;
  
          lblwestharea.Text = area4.ToString("n");
  
  
          decimal height5 = decimal.Parse(txtwinheight.Text);
  
          decimal length5 = decimal.Parse(txtwinlength.Text);
  
          decimal area5 = height5 * length5;
  
          lblwinharea.Text = area5.ToString("n");
  
          decimal areatotal = (area1 + area2 + area3 + area4) - area5;
  
          lbltotalarea.Text = areatotal.ToString("n");
  
          decimal Heightt = (height1 + height2 + height3 + height4) - height5;
          decimal Legntht = (length1 + length2 + length3 + length4) - length5;
  
          Height2.Text = Heightt.ToString("n");
          Legnth.Text = Legntht.ToString("n");
  
          Decimal price = Decimal.Parse(txtprice.Text);
  
          Decimal undercoat = Decimal.Parse(txtunder.Text);
  
          decimal roomcost = (Heightt * Legntht) * price * undercoat;
  
          txtprice.Text = roomcost.ToString("c");
  
          decimal Vattotal = (25 % roomcost);
  
          lblvat.Text = Vattotal.ToString("c");
  
          Decimal vt = Vattotal + roomcost;
  
          lblbt.Text = vt.ToString("c");
      }
  </code></pre>
  
  <p>the worked without issue but now that i am rebuilding the program due to some errors this line of code does not want to work. any ideas ? </p>
  
  <p>if requested i can post the whole 269 lines of code and also the visual studio error code. </p>