0 out of 1 rated this helpful - Rate this topic

RegisterAsBrowser Property

Sets or gets a value that indicates whether the object is registered as a top-level browser window.

Syntax

object.RegisterAsBrowser(bRegister) [ = bRegister ]

Possible Values

bRegister Boolean that specifies or receives one of the following values:
falseDefault. Object is not registered as a top-level browser.
trueObject is registered as a top-level browser.

The property is read/write. The property has no default value.

Remarks

The architecture of Windows Internet Explorer allows for multiple instances of the IWebBrowser2 object. A "top-level" IWebBrowser2 object is the parent of all other IWebBrowser2 objects. Only top-level objects can register as a browser with this method.

By setting this property to True, Internet Explorer and Windows can locate other top-level IWebBrowser2 objects that can participate in frame name resolution. For example, if the user clicks on a hyperlink that specifies a target attribute that is not in the current window, Internet Explorer searches all registered IWebBrowser2 objects in an attempt to resolve the target name.

After the window is registered as a top-level browser, it cannot be unregistered.

Applies To

InternetExplorer, WebBrowser
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ