Search This Blog

Tuesday 24 September 2013

How to display text box value of custom form in Indian rupees format


Use the following code to get the text value to be assigned to the text box/label of the currency field in VS form. 

double aNumber = 2073635.00; 
System.Globalization.CultureInfo info = System.Globalization.CultureInfo.GetCultureInfo("hi-IN"); 
string str = aNumber.ToString("C2",info); 

And now str is: "(Rupee sign) 20,73,635.00" 

No comments:

Post a Comment