Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Cheltenham, Gloucestershire, England
    Posts
    214
    Thanks
    0
    Thanked 0 Times in 0 Posts

    opening internet explorer in full window (v6)

    I want to be able to open internet explorer at a particular internet page from a VB Form but I need it to be full screen.

    I have found the object model stuff on microsoft but am not sure how to use it (a little knowledge is a dangerous thing I know)

    the extract reads:

    Syntax

    InternetExplorer.FullScreen(bFullScreen) [ = bFullScreen ]
    Possible Values

    bFullScreen Boolean that specifies or receives one of the following values:True Internet Explorer is in full-screen mode.
    False Default. Internet Explorer is in normal window mode.


    The property is read/write. The property has a default value of False.

    Ok so where do I chuck the word TRUE??


    I am probably being very dense, my forte really is creating exit buttons rather than programming

    Thanks

    Roberta

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: opening internet explorer in full window (v6)

    I suspect it would go somewhere in the middle of this:

    <pre>'Declare Sleep API
    Private Declare Sub Sleep Lib "kernel32" (ByVal nMilliseconds As Long)

    Sub PopPageInIE()
    'Create browser object reference
    ' Note: your project will need a reference to "Microsoft Internet Controls"
    Dim ieSrc As New InternetExplorer

    'Load page
    With ieSrc
    'show window and load page
    .Visible = True
    <span style="background-color: #FFFF00; color: #000000; font-weight: bold">.FullScreen = True 'try it here?????</span hi>
    .navigate "http://myhost/mypage.html"
    'don't return to calling sub until the page is loaded
    While Not .readyState = READYSTATE_COMPLETE
    Sleep 500 'wait 1/2 sec before trying again
    Wend
    End With

    'Clean up some of the bigger objects
    'ieSrc.Quit 'if you want to close the page
    Set ieSrc = Nothing
    End Sub</pre>

    I can't test this right now, it's an amended version of code I used with Internet Explorer 5.5, but hopefully this will get you started.

  3. #3
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Cheltenham, Gloucestershire, England
    Posts
    214
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: opening internet explorer in full window (v6)

    thanks your a star

    Roberta

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •