C# Numeric textbox Shows exception after changing language From "En-Us" to Any global language in Control panel

255 Views Asked by At

I created an application which contains two numeric textboxes to which I've added an StartValue property.

Example

public decimal SValue {
  get { return MValue; }
  set { MValue = value; }
}

then

const string VALUE = "1.000";
private NumericTextBox sVal;

Problem comes here

sVal.StartValue = Convert.ToDecimal(VALUE);

After I change the language in Control panel from EN-US to any global language my application hangs.

0

There are 0 best solutions below