JavaScript Editor js editor     Web development 



Main Page

References the container object of a control. Not available at design time; read-only at run time.

Control.Parent

Remarks

Applies To: CheckBox Control | Collection Class | Column Object | ComboBox Control | CommandButton Control | CommandGroup Control | Container Object | Control Object (Visual FoxPro) | CursorAdapter Class | Custom Object | EditBox Control | Exception Class (Visual FoxPro) | Form Object | Grid Control | Header Object | Image Control (Visual FoxPro) | Label Control (Visual FoxPro) | Line Control | ListBox Control | OLE Bound Control | OLE Container Control | OptionButton Control | OptionGroup Control | Page Object | PageFrame Control | Project Object (Visual FoxPro) | ProjectHook Object | Separator Object | Session Object | Shape Control | Spinner Control | TextBox Control (Visual FoxPro) | Timer Control | ToolBar Object

Use the Parent keyword to access the properties, methods, or controls of a control's container object. You can also use the Parent object reference to access the container object of a page or form.

The Parent keyword is useful in an application in which you pass controls as arguments. For example, you can pass a control variable to a general procedure and use the Parent object reference to access its container object.

You can also use the Parent object reference for objects in a control class that have been placed on an unknown form.

See Also



JavaScript Editor js editor     Web development