Masked Edit Box - What's the difference

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Zim Babwe

    Masked Edit Box - What's the difference

    In VB.NET 2005, if I have a masked edit box with the mask of (999) 000-0000,
    doesn't the 9 represent an optional entry and a zero represent a required
    entry?

    Why then if I enter (213) 234-

    am I allowed to leave off the last four digits of the phone number?

    Thanks



  • lord.zoltar@gmail.com

    #2
    Re: Masked Edit Box - What's the difference

    On Feb 6, 1:56 pm, "Zim Babwe"
    <zimba...@doyou reallythinkthis isreal.comwrote :
    In VB.NET 2005, if I have a masked edit box with the mask of (999) 000-0000,
    doesn't the 9 represent an optional entry and a zero represent a required
    entry?
    >
    Why then if I enter (213) 234-
    >
    am I allowed to leave off the last four digits of the phone number?
    >
    Thanks
    As I recall, before you process your form data, check to see if it's
    valid. I think there's a ValidateText procedure.
    I found some more information here: http://msdn2.microsoft.com/en-gb/
    library/system.windows. forms.maskedtex tbox.validatete xt.aspx

    Comment

    • Zim Babwe

      #3
      Re: Masked Edit Box - What's the difference

      Thanks for the link. I was wondering if I had to validate on exit but I
      thought the 0's took care of it.


      <lord.zoltar@gm ail.comwrote in message
      news:1170788723 .391201.268640@ v33g2000cwv.goo glegroups.com.. .
      On Feb 6, 1:56 pm, "Zim Babwe"
      <zimba...@doyou reallythinkthis isreal.comwrote :
      >In VB.NET 2005, if I have a masked edit box with the mask of (999)
      >000-0000,
      >doesn't the 9 represent an optional entry and a zero represent a required
      >entry?
      >>
      >Why then if I enter (213) 234-
      >>
      >am I allowed to leave off the last four digits of the phone number?
      >>
      >Thanks
      >
      As I recall, before you process your form data, check to see if it's
      valid. I think there's a ValidateText procedure.
      I found some more information here: http://msdn2.microsoft.com/en-gb/
      library/system.windows. forms.maskedtex tbox.validatete xt.aspx
      >

      Comment

      • RobinS

        #4
        Re: Masked Edit Box - What's the difference

        I thought it was the other way around. 9 was required and 0 was not. Have
        you tried that just to see if it will work?

        Robin S.
        -------------------
        "Zim Babwe" <zimbabwe@doyou reallythinkthis isreal.comwrote in message
        news:OxHIBCiSHH A.3592@TK2MSFTN GP03.phx.gbl...
        In VB.NET 2005, if I have a masked edit box with the mask of (999)
        000-0000, doesn't the 9 represent an optional entry and a zero represent
        a required entry?
        >
        Why then if I enter (213) 234-
        >
        am I allowed to leave off the last four digits of the phone number?
        >
        Thanks
        >
        >
        >

        Comment

        Working...