ID: Q156193
The information in this article applies to:
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.
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.
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.
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.
Additional query words:
Keywords : kb16bitonly kbCtrl kbVBp400 kbVBp400bug VB4WIN
Version : WINDOWS:4.0
Platform : NT WINDOWS
Issue type : kbbug
Last Reviewed: August 7, 1998