PRB: ParentControls Property May Not Work with Some Containers (235414)
The information in this article applies to:
- 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 Q235414 SYMPTOMS
The ParentControls Collection of a Visual Basic UserControl is empty when the control is placed in a non-Visual Basic Container.
CAUSE
The ParentControls property is designed to return a Collection of all the controls situated on a Form, UserDocument, or other UserControl. This property is exposed by the Visual Basic extender object, and it is the responsibility of the host container to implement the code needed to fill the collection. Not all containers will support this feature. Consequently, this property might return an empty collection in containers that do not support it.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 1/11/2001 |
---|
Keywords: | kbCtrlCreate kbDSupport kbprb KB235414 |
---|
|