Results 1 to 2 of 2

Thread: TextBox Mask

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    10

    Wink 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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width