Visual Basic Q&A

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘mask’

BUG: Run-Time Error 380 “Invalid Property Value” with MaskEdBox

Symptoms
With Microsoft Visual Basic 4.0, when you set the Text property of a MaskEdit control at run-time, you receive the following error.

Run-time Error 380:
Invalid Property Value
Resolution
This error occurs under the following circumstances:
The Visible property of the Mask Edit control is set to False atdesign-time.
-and-A later version of MSMASK32.OCX is installed. The error occurs withMSMASK32.OCX version 5.00.3714, which ships with Microsoft Visual Basic5.0.

BUG: RestoreToolbar Method May Not Restore Toolbar Correctly

Symptoms
When you use the RestoreToolbar method to restore a Toolbar that was savedwith the SaveToolbar method after a user customized the Toolbar it does notrestore correctly.
Resolution
Make sure all buttons use an image. You can create a 16×16 (pixel) bitmapand set the Mask Property of an ImageList control so the user does not seethe image. Use a Timer control to restore a Toolbar when a form loads.