User61956409 posted
Hi John,
error :
Input string was not in a correct format for the code below
decimal CC = Convert.ToDecimal(lblAc.Text);
As
Rion said, please debug the code and check if you pass a specified string representation of a number to Convert.ToDecimal() method. Besides, if you prefer not to handle an exception if the conversion fails, you can call the
Decimal.TryParse method instead.
Best Regards,
Fei Han