PRB: Apply Button on Custom OCX Property Page Always Disabled (161237)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q161237 SYMPTOMS
When changing properties of a custom ActiveX control via a custom property
page, the Apply button is never enabled.
CAUSE
The Changed property is not being set from the property page code.
RESOLUTION
In the property page code, add the line:
Changed = True
to all code that changes UserControl properties.
STATUS
This behavior is by design.
REFERENCES
Microsoft Visual Basic Online Help, Changed Property.
Microsoft Visual Basic User's Guide, Chapter 10, Creating Property Pages
for ActiveX Controls, Enabling the Applied Button by Setting Changed =
True.
| Modification Type: | Major | Last Reviewed: | 5/13/2003 |
|---|
| Keywords: | kbprb KB161237 |
|---|
|