Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove the maximize, minimize, and close buttons from IE 1

Status
Not open for further replies.

alfordjj

MIS
Jul 23, 2003
80
US
What I'm trying to do is make a script in VB that will be a startup script that launches IE and navigates to a certain webpage on our intranet. The machine is only for viewing a certain webpage.

Here's my problem. How do I:

A) Maximize the IE screen? Windows like to make them tiny.
B) Remove the Maximize, Minimize, and Close buttons at the top right of IE? As this machine is only for wiewing this one page, don't want them closing the instance of IE.

Here is the code I currently am using to launch the page.
Code:
set x = createobject("internetexplorer.application")

x.navigate2 "Web page path" : x.toolbar = false _
: x.menubar = false : x.statusbar = false : x.visible = True

set x = nothing

As you can see, it is simple and straight forward. I have it getting rid of the toolbar, menubar, and statusbar.

Thanks!!!!
 
You may try this:
x.FullScreen = True

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks PHV!

Does anyone know how to turn off the Close, Maximize, and Minimize buttons?
 
Oops. Nevermind. I get it now. FullScreen does all of it!

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top