IWebBrowser2::FullScreen Property

Sets or gets a value that indicates whether Windows Internet Explorer is in full-screen mode or normal window mode.


HRESULT IWebBrowser2::get_FullScreen(VARIANT_BOOL *pbFullScreen);
HRESULT IWebBrowser2::put_FullScreen(VARIANT_BOOL bFullScreen);


  • pbFullScreen
    Pointer to a variable of type VARIANT_BOOL that receives one of the values listed in Possible Values.
  • bFullScreen
    VARIANT_BOOL that specifies one of the values listed in Possible Values.

Possible Values

VARIANT_TRUE Internet Explorer is in full-screen mode.
VARIANT_FALSE Default. Internet Explorer is in normal window mode.

Return Value

Returns S_OK if successful, or an error value otherwise.


In full-screen mode, the Internet Explorer main window is maximized, and the status bar, toolbar, menu bar, and title bar are hidden.

Setting FullScreen (even to VARIANT_FALSE) resets the values of the IWebBrowser2::AddressBar and IWebBrowser2::ToolBar properties to VARIANT_TRUE. Disable the address bar and toolbars after you set the FullScreen property.

The WebBrowser object saves the value of this property, but otherwise ignores it.

See Also