473,383 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Terminate iexplore programmatically

Hello all,
I have made a button in access which opens iexplore and directs it to a
certain website.
I have use a piece of code written by Dev Ashish. So far so good. But now I
need to know how I can programmatically close iexplore again....
Does anybody have ideas?
Many thanks,
Ronny
Nov 13 '05 #1
3 3705
On Wed, 1 Sep 2004 20:12:26 +0200, "Ronny Sigo" <roon ad skynet.be>
wrote:

Several things you could do:
* Rather than firing up IE, use a webbrowser control on an Access
form. Very elegant, and you have lots of control over what gets
displayed and what the user can do.
* When starting IE, do it in such a way (perhaps: CreateProcess) you
get an instance (module?) handle that you can later use to close it.
Knowledge of Windows APIs helps.
* You could use Windows APIs to enumerate all main windows (or,
perhaps, use FindFindow), get the window handle, inspect the titles
and/or other properties, and send a WM_CLOSE message to the one you
want to close.

I like option 1.

-Tom.
Hello all,
I have made a button in access which opens iexplore and directs it to a
certain website.
I have use a piece of code written by Dev Ashish. So far so good. But now I
need to know how I can programmatically close iexplore again....
Does anybody have ideas?
Many thanks,
Ronny


Nov 13 '05 #2
Hello Tom,
Thank you for responding. The problem is that my skills as a programmer are
elevated enough to fool around in visual basic, but I never got to learn
about API's (not that I don't wan to, but time is an issue) This opening an
closing of IE, however has become a very urgent matter for me. This opening
an closing must be done without intervienience of the user. So what I would
need is an piece of code that I could use to perform both actions ... Would
you know where I could find this?
Many thanks in any case !
Ronny

"Tom van Stiphout" <no*************@cox.net> schreef in bericht
news:uh********************************@4ax.com...
On Wed, 1 Sep 2004 20:12:26 +0200, "Ronny Sigo" <roon ad skynet.be>
wrote:

Several things you could do:
* Rather than firing up IE, use a webbrowser control on an Access
form. Very elegant, and you have lots of control over what gets
displayed and what the user can do.
* When starting IE, do it in such a way (perhaps: CreateProcess) you
get an instance (module?) handle that you can later use to close it.
Knowledge of Windows APIs helps.
* You could use Windows APIs to enumerate all main windows (or,
perhaps, use FindFindow), get the window handle, inspect the titles
and/or other properties, and send a WM_CLOSE message to the one you
want to close.

I like option 1.

-Tom.
Hello all,
I have made a button in access which opens iexplore and directs it to a
certain website.
I have use a piece of code written by Dev Ashish. So far so good. But now Ineed to know how I can programmatically close iexplore again....
Does anybody have ideas?
Many thanks,
Ronny

Nov 13 '05 #3
On Thu, 2 Sep 2004 08:35:25 +0200, "Ronny Sigo" <ro********@skynet.be>
wrote:

This page:
http://www.mvps.org/access/api/api0004.htm
has most of the code you'll need.

I'm assuming you have a Open IE and a Close IE button. The first would
get all this code without the WaitForSingleObject and CloseHandle
lines, whereas the latter would get the CloseHandle line. Note that
proc should be a form-level global variable.

-Tom.

Hello Tom,
Thank you for responding. The problem is that my skills as a programmer are
elevated enough to fool around in visual basic, but I never got to learn
about API's (not that I don't wan to, but time is an issue) This opening an
closing of IE, however has become a very urgent matter for me. This opening
an closing must be done without intervienience of the user. So what I would
need is an piece of code that I could use to perform both actions ... Would
you know where I could find this?
Many thanks in any case !
Ronny

"Tom van Stiphout" <no*************@cox.net> schreef in bericht
news:uh********************************@4ax.com.. .
On Wed, 1 Sep 2004 20:12:26 +0200, "Ronny Sigo" <roon ad skynet.be>
wrote:

Several things you could do:
* Rather than firing up IE, use a webbrowser control on an Access
form. Very elegant, and you have lots of control over what gets
displayed and what the user can do.
* When starting IE, do it in such a way (perhaps: CreateProcess) you
get an instance (module?) handle that you can later use to close it.
Knowledge of Windows APIs helps.
* You could use Windows APIs to enumerate all main windows (or,
perhaps, use FindFindow), get the window handle, inspect the titles
and/or other properties, and send a WM_CLOSE message to the one you
want to close.

I like option 1.

-Tom.
>Hello all,
>I have made a button in access which opens iexplore and directs it to a
>certain website.
>I have use a piece of code written by Dev Ashish. So far so good. Butnow I >need to know how I can programmatically close iexplore again....
>Does anybody have ideas?
>Many thanks,
>Ronny
>


Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Vilmar Brazão de Oliveira | last post by:
HI people, what is wrong in the code bellow to kill iexplore.exe process after processing my page?? '»»Before comes routines to access data base and to send email. Set objWshell =...
0
by: Ronen | last post by:
Hi All, I am running a client against a web application installed on a remote server written in C# which involve infragistics for GUI . The .NET framework I use is from version 1.1.4322 and we...
0
by: Marian Veteanu | last post by:
Hello, I have an HTML page that contains an <OBJECT> tag: <OBJECT id='XfdContainer'...
4
by: Dr. J | last post by:
How to terminate a blocked thread? In my form's "load" I launch a TCP listening thread that stays in an infinite loop waiting for incoming TCP packets. In this form's "closing" I try to...
4
by: Srinivas | last post by:
Hi, In my application I started a Process using ProcessStartInfo supplying it parameters iexplore.exe and a URL. I am trying to reuse the same process by supplying it with a different URL. After...
5
by: Nadav Popplewell | last post by:
Hi everybody, I've got a web application where I need to join several strings, some of which are read from a dbase and display then IN the order they are joined. I.E. I want to display "Hello...
1
by: =?Utf-8?B?W0pvZV0=?= | last post by:
Hi, I build an application that get a command from user and send it to server, but I'm using Internet Explorer for that as following : psi = new...
0
by: =?Utf-8?B?bm9yZm9sa2c=?= | last post by:
I hope someone can help and tell me if I have a trojan or not. I have a one year old computer and am careful with virus etc, always running Norton, but for the past couple of weeks especially on a...
0
by: AAaron123 | last post by:
V2008 recent projects shows 2 iexplore If I click on either of them it shows iexplore.exe in the solutions window. Properties show the file to be C:\Program Files\Internet Explorer\iexplore.exe...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.