Using the WebBrowserApp Object

The WebBrowserApp object allows an application to create and manipulate an instance of Internet Explorer through OLE Automation. The WebBrowserApp object supports the same properties and methods as the WebBrowser control, plus several that the WebBrowser control does not support. This section describes the additional properties and methods supported by the WebBrowserApp object. For information about the properties and methods supported by both objects, see Using the WebBrowser Control.


Show and Hide User Interface Elements

The WebBrowserApp object supports a number of properties that you can use to show and hide user-interface elements of Internet Explorer, including the menu bar, the status bar, and the toolbar. The MenuBar, StatusBar, and ToolBar properties all take Boolean values. If the value of any of these properties is True, the corresponding user interface element is shown; if the value is False, the corresponding element is hidden. You can set or retrieve the text of the status bar by using the StatusText property.

The FullScreen property determines whether Internet Explorer is in full-screen or normal window mode. In full-screen mode, the Internet Explorer main window is maximized and the status bar, toolbar, menu bar, and title bar are hidden.


Retrieve Information About Internet Explorer

You can use the Name property to retrieve the name of the Internet Explorer application, or the Path property to retrieve the application's full path to the Internet Explorer application. The FullName property is similar to Path, except it retrieves the full path, including the file name, of the executable file that contains the Internet Explorer application. The HWND property retrieves the window handle of the Internet Explorer main window.

Use the Quit method to close the Internet Explorer application.

© 1996 Microsoft Corporation