FIX: Incorrect Behavior in MaskedEdit BorderStyle Property

ID: Q101257


The information in this article applies to:
  • Professional Edition of Microsoft Visual Basic programming system for Windows, version 3.0


SYMPTOMS

Setting the BorderStyle property of the Masked Edit control to None at design time results in an "Invalid property value" error at run time. In addition, setting the Mask property to anything and then setting the BorderStyle property back to Single causes unusual characters to appear in the Mask property.


CAUSE

The cause of the problem is unknown at this time.


WORKAROUND

There is no known work around at this time.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been corrected in Visual Basic version 4.0.


MORE INFORMATION

Steps to Reproduce Problem

  1. Start Visual Basic or from the File menu, choose New Project (ALT, F, N) if Visual Basic is already running. Form1 is created by default.


  2. From the File menu, choose Add File (ALT F, A), and add MSMASKED.VBX to your project.


  3. Place a Masked Edit control (MaskedEdit1) on Form1.


  4. Set the BorderStyle Property of MaskedEdit1 to 0 - None.


  5. From the Run menu, choose start (ALT, R, S), or press the F5 key to run the program.


  6. Visual Basic will generate an "Invalid Property Value" error. Click OK in the error message to return to Visual Basic.


  7. Set the Mask Property of MaskedEdit1 to #### and set the BorderStyle Property back to 1 - Single.


  8. Now check the Mask Property. It contains unusual characters, but it should still contain ####.


Additional query words: buglist3.00 3.00 fixlist4.00

Keywords : PrgCtrlsCus
Version : 3.00
Platform : WINDOWS
Issue type :


Last Reviewed: August 19, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.