Parent Property

Applies to:  Window object
See also:  Parent property, ChildWindows property

read-only

Returns a Window object corresponding to the parent window of another window.

Syntax:

object.Parent

The Parent syntax has these parts:

Part Description
object The name of a Window object.

Remarks:

For top-level windows the Parent property is nothing.  This fact can be used to determine whether a given Window is a top-level window.

The Parent property will not always be a top-level window.  For example, in a group of option buttons in a frame, each option button has a window and the frame is also a window.  The parent window for each of the option buttons is the frame, and the frame's parent window might be a top-level window, or may be another control container such as a tabbed dialog control.

 

Home Copyright and Disclaimer