BUG: MaskedEdit Control Misbehaves When DragMode Set to 1

Last reviewed: October 17, 1996
Article ID: Q153682
The information in this article applies to:
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic for Windows, 16-bit and 32-bit, version 4.0

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:

  1. Start Visual Basic. Form1 is created by default.

  2. 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.

  3. Add a MaskedEdit control with properties set as follows:

       BackColor      &H000000FF&
       DragMode       1- Automatic
       Mask           ####
    
    

  4. 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 reference words: 4.00vb4win vb4all MaskedEdit
KBCategory: kbusage kbbuglist
KBSubcategory: PrgCtrls


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: October 17, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.