PRB: ActiveX Control Cannot Assign Run-Time Read-Only Property (177094)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.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
This article was previously published under Q177094 SYMPTOMS
When your Usercontrol attempts to expose a run-time read-only property of a
constituent control, you get the following error:
Compile Error:
Can't Assign to Read-Only Property
CAUSE
The run-time read-only properties of constituent controls cannot be
exposed.
Because properties of the UserControl object and constituent controls are
exposed by delegation, you cannot expose design-time-only properties such
as Appearance and ClipControls. The settings you choose for such properties
will be fixed for your ActiveX control.
STATUS
This behavior is by design.
REFERENCES
"Exposing Properties of Constituent Controls", Books Online
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbprb KB177094 |
---|
|