BUG: Run-Time Error 380 "Invalid Property Value" with MaskEdBox
Article ID: 177088
Article Last Modified on 12/10/2003
APPLIES TO
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 4.0 Enterprise Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
This article was previously published under Q177088
SYMPTOMS
With Microsoft Visual Basic 4.0, when you set the Text property of a Mask
Edit control at run-time, you receive the following error.
Run-time Error 380:
Invalid Property Value
CAUSE
This error occurs under the following circumstances:
- The Visible property of the Mask Edit control is set to False at
design-time.
-and-
- A later version of MSMASK32.OCX is installed. The error occurs with
MSMASK32.OCX version 5.00.3714, which ships with Microsoft Visual Basic
5.0.
RESOLUTION
To work around this problem, set the Visible property of the Mask Edit
control to True at design-time and then change it to False at run-time,
perhaps during the Load event of the form.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article. We are researching this
bug and will post new information here in the Microsoft Knowledge
Base as it becomes available.
Additional query words: masked edit box editbox kbVBp400bug kbVBp500bug kbVBp kbdsd kbDSupport kbnoupdate
Keywords: kbbug kbgrpdsvb KB177088