This method of the DWebBrowserEvents2 interface occurs when the window for the WebBrowser should be shown/hidden. This allows the host window to behave the same way the Microsoft® Internet Explorer window would.
public void OnVisible(boolean Visible);
Visible | [in] The Boolean value that is nonzero if the object is visible, or zero otherwise. |