Click to See Complete Forum and Search --> : Maximize IE


Alejandro Ochoa
June 12th, 2001, 01:03 PM
I'm running IE from my app, I have the following code:



Dim IEObj as Object

set IEObj = CreateObject("InternetExplorer.Application")

IEObj.navigate WPPLogin

IEObj.Visible = true

IEObj.WindowState = vbMaximized




but IE it's not maximizing, and VB reports that the object does not recognize this property.

Does anyone know which property would do this?.

Thanks in advance.

Alejandro.

Loriken
June 12th, 2001, 11:49 PM
With APIS.

Enumerate all windows until you get one that ends with microsoft internet explorer.
Then get the hWnd and send a message to maximize it using SendMessage api.


without apis.

Add a project reference to c:\windows\system\shdocvw.dll (which is the IE dll).

And then use the InternetExplorer object instead of the above code. You'll get the hwnd easily and then can send the appropriate message or use the appropriate apis. You'll also have the fullscreen property and so on.

Alejandro Ochoa
June 13th, 2001, 08:15 AM
How do I use shdocvw.dll ?