Results 1 to 2 of 2

Thread: masked edit control

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Posts
    69

    Angry masked edit control

    A masked edit box is set to enter a date as "dd/mm/yyy"

    mskBox1.mask = "##/##/####"

    However, users allow to enter empty date or empty month like
    "--/--/1990" or "--/09/1990", but not empty year. As mask is set as "##/##/####", only numbers are allowed.

    How to reset mask in order to allow enter numbers and "--"?

    Thank you.
    vb999

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Location
    Neenah, WI USA
    Posts
    95
    You can try a mask like "CC-CC-####"

    Here's a link to microsofts page of valid entries for the mask:
    http://msdn.microsoft.com/library/de...mask_medit.asp

    Steve

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