Microsoft KB Archive/156193

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

Article ID: 156193

Article Last Modified on 4/18/2003

-

APPLIES TO


 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition

-



This article was previously published under Q156193



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.



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: kbbug kb16bitonly kbctrl KB156193

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.