Results 1 to 4 of 4

Thread: unloading internet explorer

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17

    Question

    hello again.

    Currently referencing Internet explorer in an application, and I like it so that when ever I clicked the button to exit my program, (i.e unload the form) I would like any IE windows that have been opened through the application to also close down. I've tried using

    set ie = nothing

    But to no effect.

    Any ideas

    Cheers

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Lightbulb This is what I came up with

    Code:
    'add a reference to Microsoft Internet Controls
    Dim myIE As New InternetExplorer 'Declare myIE as InternetExplorer
    Private Sub cmdLoad_Click()
    myIE.Visible = True
    myIE.Navigate "http://www.hotmail.com"
    'load myie
    'then navigate to hotmail
    End Sub
    Private Sub cmdQuit_Click()
    myIE.Quit
    'what ur looking for: quit ie
    End Sub
    tell me how it goes ok

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17

    Thumbs up many thanks

    many thank yous,

    That worked like a dream.

    Thanks

  4. #4
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    that's good

Posting Permissions

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



Click Here to Expand Forum to Full Width