• opening internet explorer in full window (v6)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » opening internet explorer in full window (v6)

    Author
    Topic
    #407391

    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

    Viewing 1 reply thread
    Author
    Replies
    • #851791

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

      '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
          .FullScreen = True     'try it here?????
          .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

      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.

    • #851792

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

      '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
          .FullScreen = True     'try it here?????
          .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

      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.

    Viewing 1 reply thread
    Reply To: opening internet explorer in full window (v6)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: