|
-
Dec 27th, 2005, 09:22 PM
#1
Thread Starter
New Member
TextBox Mask
somebody has one chewed to enter amounts in decimal that you autocomplete the commas and points, but that does not depend on regional configuration of the maquina. Greetings,
Ronald Saavedra
-
Dec 27th, 2005, 10:27 PM
#2
Re: TextBox Mask
All you need to do is convert the contents of the TextBox between a String and a Double using a custom NumberFormatInfo object. You can create a NumberFormatInfo object and set its properties so that it formats numbers however you like. You can then pass that object as the second argument to Double.ToString and the third argument to Double.TryParse.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|