Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

IWebBrowser2::Parent Property

Gets the parent of the object.


HRESULT IWebBrowser2::get_Parent(IDispatch **ppDisp);


Address of a pointer to a variable of type IDispatch interface that receives the parent.

Return Value

Returns one of the following values.

S_OK The operation completed successfully.
E_FAIL The operation failed.
E_NOINTERFACE No such interface is supported.


If the WebBrowser control is in a frame, this method returns the automation interface of the document object in the containing window. Otherwise, it delegates to the top-level control, if there is one.

The InternetExplorer application always returns a pointer to itself.

See Also

Community Additions

© 2015 Microsoft