Solved

IE controls in Visual basic - Easy one

Posted on 2006-06-16
3
289 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

12 Experts available now in Live!

Get 1:1 Help Now