DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  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.



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links