Hi!
How can I permit the write separed number in my texbox. For example:
to format it like this: when I write 100000 (its should separed in three number automatically: 100.000)
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Dec 11, 2014, 8:20 AM
I think I'm also right in saying that the thousands separator used in Portuguese is the dot rather than the comma used in the US or UK.
So, what I'm saying is that if you have some integer (n say)and you want to display it in a textbox, then this code should automatically insert thousand separators:
textBox1.Text = n.ToString("N0");
IsraelPosted Dec 11, 2014, 8:11 AM
Mfwamba TshimangaPosted Dec 11, 2014, 8:09 AM
Mfwamba TshimangaPosted Dec 11, 2014, 8:08 AM
VulpesPosted Dec 11, 2014, 7:53 AM