473,698 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Terminate iexplore programmaticall y

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 programmaticall y close iexplore again....
Does anybody have ideas?
Many thanks,
Ronny
Nov 13 '05 #1
3 3724
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 programmaticall y 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.c om...
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 programmaticall y 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********@sky net.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 WaitForSingleOb ject 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 programmaticall y 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
7436
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 = Server.CreateObject("WScript.Shell") objWshell.Run "%COMSPEC% /C kill iexplore.exe", 0, TRUE VILMAR BRAZIL
0
546
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 use the following Infragistics components: * WebSchedule Component Version: 1.0.20033.6 * UltraWebTree and UltraWebMenu components Version: 3.0.20033.8 * UltraWebListbar component Version: 2.0.20033.8
0
1510
by: Marian Veteanu | last post by:
Hello, I have an HTML page that contains an <OBJECT> tag: <OBJECT id='XfdContainer' classid='http://localhost/XfdRuntime/StarLIMS.Web.XfdRuntime.dll#StarLIMS.Web.XfdRuntime.XfdViewer.XfdContainer' VIEWASTEXT> </OBJECT> The StarLIMS.Web.XfdRuntime.dll assembly and the other statically
4
4933
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 terminate this thread by calling the "Abort" funcion. But the thread does not terminate and after the form is closed this thread keeps running at blocked state. Basically the application keeps running because this thread does not terminate while...
4
2460
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 assigning a new ProcessStartInfo object created with a New URL I am trying to refresh the Process. This action is not refreshing the Internet Explorer with the new URL. Please let me know if there is a way to change the URL of an existing IEXPLORE...
5
1299
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 {USERNAME}, How are you doing?" ({USERNAME} is read from dbase). Now the problem is that the strings around the {USERNAME} should be in hebrew, and the USERNAME can be either hebrew or english or mixed. Because of the BIDI algorithm if the string...
1
1850
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 System.Diagnostics.ProcessStartInfo("IEXPLORE.EXE"); psi.Arguments = "http://xxx.xxxx.60.3/webdialer/Webdialer?destination="+this.mytestBox.Text.Trim()+"\""; pros =new System.Diagnostics.Process(); pros.StartInfo = psi;
0
1120
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 Sunday/Monday my cpu has been running at 98% on iexplore.exe I have done a scan and even paid money for norton to remotely sort it, only they couldn't gain access and only caused explorer to close..... I have read the threads and have just...
0
2348
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 I look in C:\Program Files\Internet Explorer\ and see both a iexplore.sln and a iexplore.suo file there. I know it is a bother but I'd appreciate it if you would look into
0
8671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9016
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2321
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.