Solved

IE controls in Visual basic - Easy one

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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

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…
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…
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…
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…

770 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