Close Internet Explorer Window


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Close Internet Explorer Window

  1. #1
    foxfi Guest

    Close Internet Explorer Window


    I want to know how to close an Internet Explorer Window, I have been trying
    with the answers to close a window that someone answered to another, but
    this no effect with IE.

    Thanks for your attemption,

    Foxfi

  2. #2
    Mattias Sjögren Guest

    Re: Close Internet Explorer Window

    Foxfi,

    >I want to know how to close an Internet Explorer Window, I have been trying
    >with the answers to close a window that someone answered to another, but
    >this no effect with IE.


    Here's one easy way to do it. First add a reference to Microsoft
    Internet Controls (shdocvw.dll), then type:


    Dim sw As ShellWindows
    Dim ie As InternetExplorer

    Set sw = New ShellWindows
    For Each ie In sw
    If ie.LocationURL = "http://www.some.url/" Then ie.Quit
    Next
    Set sw = Nothing


    Mattias

    ____________________________________________
    Mattias Sjögren - mattiass @ hem.passagen.se
    http://hem.spray.se/mattias.sjogren/
    Docendo discimus

  3. #3
    Mattias Sjögren Guest

    Re: Close Internet Explorer Window

    Foxfi,

    >I want to know how to close an Internet Explorer Window, I have been trying
    >with the answers to close a window that someone answered to another, but
    >this no effect with IE.


    Here's one easy way to do it. First add a reference to Microsoft
    Internet Controls (shdocvw.dll), then type:


    Dim sw As ShellWindows
    Dim ie As InternetExplorer

    Set sw = New ShellWindows
    For Each ie In sw
    If ie.LocationURL = "http://www.some.url/" Then ie.Quit
    Next
    Set sw = Nothing


    Mattias

    ____________________________________________
    Mattias Sjögren - mattiass @ hem.passagen.se
    http://hem.spray.se/mattias.sjogren/
    Docendo discimus

  4. #4
    foxfi Guest

    Re: Close Internet Explorer Window


    >Here's one easy way to do it. First add a reference to Microsoft
    >Internet Controls (shdocvw.dll), then type:
    >
    >Dim sw As ShellWindows
    >Dim ie As InternetExplorer
    >
    >Set sw = New ShellWindows
    >For Each ie In sw
    > If ie.LocationURL = "http://www.some.url/" Then ie.Quit
    >Next
    >Set sw = Nothing
    >
    >Mattias


    Thank you for help me, you have save my life.



  5. #5
    foxfi Guest

    Re: Close Internet Explorer Window


    >Here's one easy way to do it. First add a reference to Microsoft
    >Internet Controls (shdocvw.dll), then type:
    >
    >Dim sw As ShellWindows
    >Dim ie As InternetExplorer
    >
    >Set sw = New ShellWindows
    >For Each ie In sw
    > If ie.LocationURL = "http://www.some.url/" Then ie.Quit
    >Next
    >Set sw = Nothing
    >
    >Mattias


    Thank you for help me, you have save my life.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center