Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Masked Formating

Masked Formating

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shaahinm
    wrote on last edited by
    #1

    Hi, I have a textbox which get a number(Amount of money) from user. i want to show the enterd number like this : 0,000,000(1,123,145)(automatically add (,) after 3digits enterd) when i use masking it doesn't work the way i want it , can any one help me on this?

    M 1 Reply Last reply
    0
    • S Shaahinm

      Hi, I have a textbox which get a number(Amount of money) from user. i want to show the enterd number like this : 0,000,000(1,123,145)(automatically add (,) after 3digits enterd) when i use masking it doesn't work the way i want it , can any one help me on this?

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      Winform or webform? In winform, you can use MaskedEdit standard control.. In web form, you have to find the custom control (e.g. http://www.codeproject.com/useritems/MaskingText_for_ASPNET.asp)

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

      S 1 Reply Last reply
      0
      • M Michael Sync

        Winform or webform? In winform, you can use MaskedEdit standard control.. In web form, you have to find the custom control (e.g. http://www.codeproject.com/useritems/MaskingText_for_ASPNET.asp)

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

        S Offline
        S Offline
        Shaahinm
        wrote on last edited by
        #3

        in winform I used defult masks but they didn't work porperly what I've tried to do is to automatically add a (,) after 3digits is enterd thanks

        M 1 Reply Last reply
        0
        • S Shaahinm

          in winform I used defult masks but they didn't work porperly what I've tried to do is to automatically add a (,) after 3digits is enterd thanks

          M Offline
          M Offline
          Michael Sync
          wrote on last edited by
          #4

          If your text is static, you can use #,###,###(#,###,###) in Standard masked edit. if you want to enter the text as much as you want then you should consider using thoundsand seperator function in keypress event of textbox..

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups