Solved

IE controls in Visual basic - Easy one

Posted on 2006-06-16
3
290 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now