Solved

IE controls in Visual basic - Easy one

Posted on 2006-06-16
3
294 Views
Last Modified: 2013-11-25

Experts,

I am trying to do an application in Visual Basic, in which it has Browser included. However while the exe is running, On browser load, I want to close all other internet explorer which is opened.

Any suggestions?

Thanks
Ignatius.
0
Comment
Question by:nomeoj
3 Comments
 
LVL 9

Expert Comment

by:justchat_1
ID: 16924666
You need to kill the process iexplore.exe by exe name.

Try this:
http://www.thescarms.com/VBasic/StopProcess.asp

Or look at idle minds code:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20792368.html
0
 
LVL 8

Expert Comment

by:kaliyugkaarjun
ID: 16933367
Internet explorer EXE has one main process ...
http://www.vbforums.com/showthread.php?t=236340
 Here is a sample cs. file that kills all children and main process ...cheers
0
 
LVL 28

Accepted Solution

by:
AzraSound earned 250 total points
ID: 16936400
Try this:

Go to Project -> References and select Microsoft Internet Controls


Dim shWin As New ShellWindows
Dim IE As InternetExplorer

For Each IE In shWin
    IE.Quit
Next
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question