How To Iterate Controls on a Form from a Property Page (161056)
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 Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual J++ 1.0
This article was previously published under Q161056 SUMMARY
Microsoft Visual Basic version enables you to create custom property
pages for user-defined ActiveX controls. These property pages can contain
controls and fields that change the properties of the user-defined control.
The property pages can also be extended to change properties of other
controls that may be contained within the form where the user-defined
control is located.
The property page, by default, can only access public properties of the
user-defined control for which it was written. However, by using the
ParentControls collection and a Friend function, you can create a route
through which you can expose the other controls contained within the parent
form.
The use of the Friend function enables components within the ActiveX
control to use this function, while hiding it from use outside the
immediate project. The ParentControls collection returns the objects within
the parent container. This includes returning item(0) as a reference to the
parent container.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB161056 |
---|
|