I have my own textbox which inherits System.Windows.Forms.TextBox
I am trying to display texts like 5000000 formatted ==> 5,000,000
but the problem is that Control.Text should return 5000000 but it should display 5,000,000.
I know it is WTF, but i really need it and i couldn’t Google a lot because my native language is not English(and anyone can get it from my grammar and Im sorry for that).
When you want to retrieve it, convert the displayed string to an integer using
int.ParseandCultureInfo.CurrentCulturethen convert it back to a string usingToStringandCultureInfo.InvariantCulture.