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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do you maximize an internetexplorer object??

Status
Not open for further replies.

Painkiller

Programmer
May 18, 2001
97
NL
Hi all,

I'm trying to open an html document by creating a new internetexplorer object. All goes well but I don't know how to maximize the IE. When I use the fullscreen property the whole browsing area is displayed fullscreen, e.g. you can't see the addressbar, the menu, the toolbar or even the windows taskbar. Anybody know how to solve this? I'm using the following code:

Dim IE As InternetExplorer 'IE as internet explorer object
Dim StrAppPath As String
Const HelpFile As String = "test.html"

Set IE = New InternetExplorer 'new instance

StrAppPath = App.Path + "\"

'open html-document
IE.Navigate (StrAppPath & HelpFile)
IE.Visible = True 'show html-document

much appreciated.
 
Hi there,
you can try and call the "ShowWindow" API Function to do so.


SW_SHOWMAXIMIZED = 3
SW_SHOWMINIMIZED = 2

When you want to Maximize the IE Window just say...
Call ShowWindow(CLng(IE.hwnd), SW_SHOWMAXIMIZED)
And to minimize...
Call ShowWindow(CLng(IE.hwnd), SW_SHOWMINIMIZED)

I hope this is what u want.
All The Best

Atul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top