How to put Input mask in text box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elbatz
    New Member
    • Dec 2007
    • 14

    How to put Input mask in text box

    Hello.Did anyone here know how to put an input mask to a textbox. for example only a phone number must be inputted like '(063) 123-4567' do I need to code this one?
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by elbatz
    Hello.Did anyone here know how to put an input mask to a textbox. for example only a phone number must be inputted like '(063) 123-4567' do I need to code this one?
    The simplest way is to use the MS Masked Edit Control rather than the textbox control. I believe you first need to add to your project a reference to this control.

    Comment

    • elbatz
      New Member
      • Dec 2007
      • 14

      #3
      Thanks a lot.It works!!

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by elbatz
        Thanks a lot.It works!!
        Glad we could help. :)

        Comment

        Working...