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 ‘control’

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: Recordset EditMode is Not Set Properly When Data is Modified Through Bound Controls

Symptoms
When using some controls bound to an ADO Recordset object, the EditMode is not set properly when you modify the data through the bound controls. These controls include the Microsoft DataCombo control.
With other controls bound to an ADO Recordset object, the EditMode is set properly when data is changed through the bound controls. These controls include the TextBox.
The expected behavior is that the EditMode is set properly for each type of bound control.
Resolution
The affected controls do not notify the Binding Collection that they are dirty.

BUG: No Data Source Name Generates Run-Time Error Using RDC

Symptoms
When using Microsoft’s Remote Data Control 2.0 (RDC) without a User orSystem DSN in the ODBC Data Source Administrator, trying to set the RDC’sDataSourceName property generates a run-time error.
Resolution
Create a DSN under ODBC or upgrade from MSRDC20.ocx version 5.00.3714 (or5.01.4319), which is “Microsoft Remote Data Control 2.0,” to MSRDC20.ocxversion 6.00.816, which is “Microsoft Remote Data Control 6.0.”

BUG: Error in CoolBar Event Can Cause Hanging or Exception

Symptoms
When using a CoolBar control, your compiled application hangs or generatesan exception error or invalid page fault (IPF.)
Resolution
An unhandled error occurred in one of the CoolBar’s Events.

BUG: Error 424 Adding Data Object Wizard-Created Ctrl to Form

Symptoms
When you try to place a user control that was created using the Data ObjectWizard onto a form, Error 424 (“Object Required”) occurs.
Resolution
When you place a user control on a form, that control’s Resize event isexecuted. If you create a list box or combo box type of user control usingthe Data Object Wizard, that control’s Resize event refers to the containedlist box or combo box incorrectly and causes error 424, “Object required.”

BUG: Data Control Validate Event Not Fired on Unloading Form

Symptoms
A form containing a bound Data Control disables the Validate event when theform is unloaded.
Resolution
Microsoft has confirmed this to be an issue in the Microsoft productslisted at the beginning of this article. Microsoft is researching thisissue and will post new information here in the Microsoft Knowledge Base asit becomes available.