In line:
int d = Convert .ToInt32 ( TxtAmount.Text);
there is an error
Input string was not in a correct format
I want to convert the number inside TxtAmount.Text. if it's a negative number to decimal or integer without - and then convert it again to string because ConvertNumbersToArabicAlphabet the parameter is string.
int d = Convert .ToInt32 ( TxtAmount.Text);
ConvertNumbersToArabicAlphabet a = new ConvertNumbersToArabicAlphabet(d.ToString());
Label2.Text = a.GetNumberAr();
decimal d = Convert.ToDecimal(TxtAmount.Text);new ConvertNumbersToArabicAlphabet(TxtAmount.Text);TxtAmount.Textand what is yourCurrentCulture? Debug your code and tell us.