Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Window Size and Location of Internet Explorer

I am successfully launching Iexplore from a VB6 Application using the following command:

x= Shell(browserpath & "\iexplore.exe" & " file:///c:\startmnu.htm"), 3)

I would however like to specify the Top, Left, Height and Width of the Browser.  

Any suggestions??
0
trims30
Asked:
trims30
  • 2
  • 2
1 Solution
 
sdm395Commented:
I don't know if there are switches you can run to alter the height of IE, but you could create an instance through code and be able to alter those properties.

e.g.

Dim x As InternetExplorer
Set x = New InternetExplorer
x.Visible = True
x.Navigate2 ("http://www.microsoft.com")
x.Height = 200
x.Width = 300
x.Top = 500
x.Left = 500
0
 
trims30Author Commented:
sdm395:

This has possibilities but am I missing something???

program gives compile error on DIM X as InternetExplorer because it's an unknown TYPE.

How do I define Iexplore.exe as Type InternetExplorer???

Lee
0
 
sdm395Commented:
You need to add a reference to 'Microsoft Internet Controls'  (shdocvw.dll)

0
 
trims30Author Commented:
THANKS!


Works Great!

I had tried adding the Internet "Component" but not the "Reference"

Lee
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now