Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thousands Separator in C# TextBox ?
Message
 
À
02/04/2007 06:01:36
Handi Rusli
PT. Alam Sumbervita
Jakarta, Indonésie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01211171
Message ID:
01211244
Vues:
15
>Hi,
>
>I'm a newbie in C#, from a VFP perspective ... I just want to add thousand separator in Textbox (WinForm App) like in VFP (just put ##,###,### in InputMask property). Can I get this behaviour in C# WinForm ?
>
>Oh, one more question ... What is the best data type for Money ?
>
>Thanks in advance :-)

The NumericUpdown control has a thousand separator property that you can use.
If you want just a regular textbox you will have to write your own control or download someone elses control. Here is a codeproject article: http://www.codeproject.com/vb/net/NumCtrl.asp

I use decimal to store money.

HTH
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform