views:

102

answers:

4

Is there a method to launch an Internet Explorer window from a desktop Icon such that the Status Bar and tool bar are hidden?

When a user clicks on the icon only the windows form (Maximize, Minimize etc) icons should be present. The URL bar, Toolbar, Status bar should not be present.

+1  A: 

You could create a shortcut to a webpage that uses javascript to open a new window without status or toolbars and then close the original window.

var newWindow = window.open("http://www.w3schools.com", "", "menubar=no,toolbar=no,status=no");
window.close();
jrummell
Good idea. The user will be prompted on the window.close(), though.
Mark
And it will still have an address bar (for security reasons).
jeffamaphone
@Mark I didn't realize IE would prompt you on window.close(), thanks for the info.
jrummell
+1  A: 

You could write an intermediate page that configures IE that way using javascript and then redirects to the real target URL. I believe you use window.Externals to access the toolbars.

Jeff Yates
+4  A: 

How about a VB script, shudder...

Dim objIE
Set objIE = WScript.CreateObject ("InternetExplorer.Application")
ObjIE.Toolbar = false
objIE.Navigate "about:blank"
objIE.Visible = true

Save that as ie.vbs

Mark
Does the user need anything special loaded to have this vb script work?
Sheraz
It requires Windows Script Host, which is included with windows: http://en.wikipedia.org/wiki/Windows_Script_Host#Version_history
jrummell
+2  A: 

You can write a simple program to do it, which you could create a shortcut to.

The basic outline would be:

CComPtr<IWebBrowser2> webbrowser;
HRESULT hr = CoCreateInstance(CLSID_InternetExplorer, NULL, CLSCTX_INPROC_SERVER, IID_IWebBrowser2, (void **)&webbrowser);
if (SUCCEEDED(hr)) {
  webbrowser->put_AddressBar(VARIANT_FALSE);
  webbrowser->put_StatusBar(VARIANT_FALSE);
  webbrowser->put_ToolBar(VARIANT_FALSE);
  webbrowser->put_MenuBar(VARIANT_FALSE);
  webbrowser->put_Visible(VARIANT_TRUE);
}
jeffamaphone