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. a special Format For MaskedTextBox [modified]

a special Format For MaskedTextBox [modified]

Scheduled Pinned Locked Moved C#
questionhelptutorial
6 Posts 3 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.
  • M Offline
    M Offline
    mostafa_h
    wrote on last edited by
    #1

    HI ALL ! i want to use a special format for MaskedTextBox , For Example an arabian Date like this :"yyyy/mm/dd".because Date Format for MaskedTextBox is a "christian format ".how can i do it ? thanks for any help ! s_mostafa_h -- modified at 14:54 Sunday 4th June, 2006

    N 1 Reply Last reply
    0
    • M mostafa_h

      HI ALL ! i want to use a special format for MaskedTextBox , For Example an arabian Date like this :"yyyy/mm/dd".because Date Format for MaskedTextBox is a "christian format ".how can i do it ? thanks for any help ! s_mostafa_h -- modified at 14:54 Sunday 4th June, 2006

      N Offline
      N Offline
      NaNg15241
      wrote on last edited by
      #2

      If you are using VS then in the design mode, you can click once on it, and a little arrow will apear, in there, you can set the Mask. On the window that opened you can Costum design your Mask. Good-Luck.

      M 1 Reply Last reply
      0
      • N NaNg15241

        If you are using VS then in the design mode, you can click once on it, and a little arrow will apear, in there, you can set the Mask. On the window that opened you can Costum design your Mask. Good-Luck.

        M Offline
        M Offline
        mostafa_h
        wrote on last edited by
        #3

        thanks , but i want to give an error message if the user enter a wrong format (for an arabian date like :14--/--/-- or yyyy/mm/dd). regards, s_mostafa_h

        N 1 Reply Last reply
        0
        • M mostafa_h

          thanks , but i want to give an error message if the user enter a wrong format (for an arabian date like :14--/--/-- or yyyy/mm/dd). regards, s_mostafa_h

          N Offline
          N Offline
          NaNg15241
          wrote on last edited by
          #4

          Can't you use a DateTimePicker? it's alot easyer! You either can open the Calander, or either you can choose the year, month or day like list-box, very comfterbale (bahhh don't know english), and is set to your home language.

          M 1 Reply Last reply
          0
          • N NaNg15241

            Can't you use a DateTimePicker? it's alot easyer! You either can open the Calander, or either you can choose the year, month or day like list-box, very comfterbale (bahhh don't know english), and is set to your home language.

            M Offline
            M Offline
            malikjhangirahmed hotmail com
            wrote on last edited by
            #5

            At design time, in the property window, set the mask property to the mask you want to set.That's it... Wasif Ehsan

            M 1 Reply Last reply
            0
            • M malikjhangirahmed hotmail com

              At design time, in the property window, set the mask property to the mask you want to set.That's it... Wasif Ehsan

              M Offline
              M Offline
              mostafa_h
              wrote on last edited by
              #6

              Wasif Ehsan wrote:

              Can't you use a DateTimePicker ?

              I want to use a Persian or Arabian Date . How can I change DateTimePicker Control to Persian or Arabian Date ... . thanks a lot . s_mostafa_h

              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