TextBox
-
Hi Dear I use VS2005 , in windows app i want to have a thousand separator for numbers that shown in Textbox or MaskTextBox. How can i do that?
thousand separator means ?? :confused::confused: Do you want to create a custom textbox control??
Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
Create .NET Templates -
Hi Dear I use VS2005 , in windows app i want to have a thousand separator for numbers that shown in Textbox or MaskTextBox. How can i do that?
Either use
string.Format()
ornumberVariable.ToString(string formatString)
to set the text for theTextBox
// Either
myTextBox.Text = string.Format(formatString goes here, numberVariable);// Or
myTextBox.Text = numberVariable.ToString(format string goes here);I'll leave you to look up format strings in MSDN.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”