I want to add \",\" to after every group of 3 digits. Eg : when I type 3000000 the textbox will display 3,000,000 but the value still is 3000000. I tried to use maskedte
Use String.Format
int value = 300000 String.Format("{0:#,###0}", value); // will return 300,000
http://msdn.microsoft.com/en-us/library/system.string.format.aspx