PRB: VB5 .OCX Property Missing from VB4 Properties Window (169772)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q169772 SYMPTOMS
A public property of an ActiveX Control (.OCX) created in Visual Basic 5.0
or Visual Basic 6.0 does not appear in the Properties Window when the
control is used in Visual Basic 4.0's design environment.
CAUSE
By default, a Public Property Let procedure passes its arguments by
reference and not by value. When these arguments are passed by reference
from an ActiveX Control (.OCX), the property will not be visible in the
Visual Basic 4.0 Properties Window.
RESOLUTION
To resolve this problem, be sure that all arguments passed by a Public
Property Let procedure are passed by value. For example, if you have the
following property procedure definition:
Public Property Let MyProperty(newValue As Boolean)
it needs to be changed to:
Public Property Let MyProperty(ByVal newValue As Boolean)
to work correctly.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kb32bitOnly kbCtrl kbprb KB169772 |
---|
|