IWebBrowser2::ToolBar Property

Sets or gets whether toolbars for the object are visible.


HRESULT IWebBrowser2::get_ToolBar(int *pValue);HRESULT IWebBrowser2::put_ToolBar(int Value);


Pointer to a variable of type int that receives one of the values listed in Possible Values.
int that specifies one of the values listed in Possible Values.

Possible Values

FALSE Toolbar is hidden.
TRUE Default. Toolbar is visible.

Return Value

Returns S_OK if successful, or an error value otherwise.


When the IWebBrowser2::ToolBar property is set to FALSE, it is not equivalent to the "toolbar=no" feature of window.open. Instead, it turns off all user interface elements that can be considered toolbars, leaving Windows Internet Explorer in a blank state.

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

See Also

Community Additions