Microsoft KB Archive/153682

= BUG: MaskedEdit Control Misbehaves When DragMode Set to 1 =

Article ID: 153682

Article Last Modified on 6/24/2004

-

APPLIES TO


 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



This article was previously published under Q153682



SYMPTOMS
Setting the DragMode property of the MaskedEdit control to 1-Automatic results in abnormal control behavior by either not displaying the mask prompt characters, making the control's background transparent, or disabling editing during run time. Any or all of these symptoms may be encountered depending on whether you are running 16- or 32-bit Visual Basic.



STATUS
Microsoft has confirmed this to be a problem in Visual Basic version 4.0 for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The following is a step-by-step example showing how this problem can be reproduced in 16- and 32-bit Visual Basic:

 Start Visual Basic. Form1 is created by default. Select the Custom Controls option from the tools menu. When the Custom Controls dialog box appears, select "Microsoft Masked Edit Control" from the Available Controls list.  Add a MaskedEdit control with properties set as follows: BackColor     &H000000FF& DragMode      1- Automatic Mask          ####  Run the sample program. If you are running 32-bit Visual Basic, the Mask prompt characters fail to appear, and control editing is disabled. In 16-bit, in addition to the above problems, the background color becomes transparent.

Additional query words: 4.00vb4win vb4all MaskedEdit

Keywords: kbbug KB153682

-

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

© Microsoft Corporation. All rights reserved.