Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2004
    Location
    Laguna, Philippines
    Posts
    147

    Unanswered: MaskEdBox Control Problem

    When i try to assgin a date value to a maskedbox control the error "Invalid property value" appears. What is wrong with it or how can i assign a date value to a maskedbox control in vb6.

    'Here's my code...
    maskedbox1.Text = #1/11/1980#

    'return's an error...

    Invalid property value.

    Thanks in advance
    Give me a place to code and i shall move the earth!

  2. #2
    Join Date
    Jul 2004
    Posts
    48

    try with format

    u will try to do it with the format command available in vb

  3. #3
    Join Date
    Dec 2004
    Location
    Laguna, Philippines
    Posts
    147
    i've already tried that but still doesnt work. but thanks coz ive already seen what the problem is. You must first reset the mask property of the control before assigning it a new value.

    anyway thanks for your suggestion.
    Give me a place to code and i shall move the earth!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •