While sticking around how to group the digits I tried this, quite helpful.
using System.Globalization ;/***Remember the number format has been picked up from the settings in Regional and Language Options (or Regional Options or *Regional Settings) in Control Panel*/ NumberFormatInfo nFI = new CultureInfo("en-US", false).NumberFormat ;// your numeric valueInt64 int_value = 12000 ;// result will be 12,000.00CostTextBox.Text = int_value.ToString("N", nFI) ;
This way you can separate the digits just like the windows calculator do.
Enjoy,
Danish Sami
Remember Me
Powered by: newtelligence dasBlog 1.8.5223.0
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2009, Danish Sami, et.al.
User Group Lead