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

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

fullscreen internet explorer

Im calling an internet explorer session
using the following code:

Dim browser2 As InternetExplorer
'create the object
Set browser2 = CreateObject "InterNetExplorer.Application")
browser2.Visible = True
'open the web page
browser2.Navigate ("http://www.url.com")
browser2.FullScreen = True

The problem is when I specify fullscreen for the browser the address bar, buttons and menu bar dissappear.
How can I get a full screen browser but retain those items?

Thanks

0
reido2
Asked:
reido2
  • 3
  • 2
  • 2
1 Solution
 
AzraSoundCommented:
try this:

Dim IEobj As New SHDocVw.InternetExplorer


Private Sub Form_Load()
    IEobj.Navigate "www.opengl.org"
    IEobj.Visible = True
    SendKeys "{F11}"
End Sub

0
 
GivenRandyCommented:
Use this:

browser2.TheaterMode = True
0
 
AzraSoundCommented:
oops i forgot about the address bar

IEobj.addressbar = true
0
Technology Partners: 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!

 
reido2Author Commented:
Azrasound your solution has the same effect as givenrandy. This is all very well but it still doesn't look the same
as a maximized windows explorer.

I personally dont like the theatermode.

Any thoughts?
0
 
AzraSoundCommented:
maximized?  oh thats a different story...

Option Explicit
Private Declare Function ShowWindow Lib "User32" (ByVal Hwnd As Long, ByVal nCmdShow As Long) As Long

Const SW_SHOWMAXIMIZED = 3


Private Sub Command1_Click()
    Dim retval As Long
    Dim IEobj As New SHDocVw.InternetExplorer

    IEobj.Navigate "www.opengl.org"
    IEobj.Visible = True
    retval = ShowWindow(IEobj.Hwnd, SW_SHOWMAXIMIZED)

End Sub

0
 
GivenRandyCommented:
I'm not sure exactly what you want, then.
0
 
reido2Author Commented:
Thats the one I wanted. Cheers.
0

Featured Post

Technology Partners: 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!

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