BUG: Masked Edit Control Does Not Appear 3D at Run-time

Last reviewed: August 13, 1997
Article ID: Q156193
The information in this article applies to:
  • Professional and Enterprise Editions of Microsoft Visual Basic, 16-bit only, for Windows, version 4.0

SYMPTOMS

The 16-bit version of the Masked Edit control ignores the setting of the Appearance property at run-time and will not paint using any 3D effects.

WORKAROUND

Following are two methods to work around this behavior:

  1. Place the Masked Edit control inside a Picture Box control. Set the Picture Box's TabStop property to False, and then size the Picture Box to the desired dimensions.

  2. To the form containing the Masked Edit control, add an Image control with its BorderStyle property set to FixedSingle and its Appearance property set to 3. Then, reposition and resize the Image control to act as the 3D border for the Masked Edit control.

STATUS

Microsoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start a new project in Visual Basic. Form1 is created by default. Place a Masked Edit control on Form1.

  2. Change the Appearance property of the Masked Edit control to 3D.

  3. Run the project by pressing the F5 key. Note that the Masked Edit control is displayed on Form1 without 3D effects.
Keywords          : vb416 VB4WIN
Version           : 4.0
Platform          : NT WINDOWS
Issue type        : kbbug


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 13, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.