473,472 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Closing windows

How to close browser windows from code

Nov 21 '05 #1
8 976
"Nikolay Petrov" <jo******@mail.bg> schrieb:
How to close browser windows from code


Did your application start the browser?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2
Take a look at my (crouchie1998's) post here:

http://msdn.microsoft.com/newsgroups...2-ba2cfe48b93f
Nov 21 '05 #3
See my (crouchie1998) post here:

http://msdn.microsoft.com/newsgroups...2-ba2cfe48b93f
"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:11*********************@l41g2000cwc.googlegro ups.com...
How to close browser windows from code

Nov 21 '05 #4
"Crouchie1998" <Cr**********@discussions.microsoft.com> schrieb:
Take a look at my (crouchie1998's) post here:

http://msdn.microsoft.com/newsgroups...2-ba2cfe48b93f


Well, that works :-), but there might be an easier solution if IE was
started in the same application.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
Yeah, of course there could be an easier way because you can get the process
handle... & then close it that way.

Another way is to get all the IE processes & iterate through them closing
them one at a time, but that if the user wants them all closed
Nov 21 '05 #6
I use an JavaScript in my ASP .NET page to open new page, which
displays status for a long running operation.
What I need is a way to close that window, after the operation has
finnished.
So my question maybe must be: Can an ASP .NET page close it's browser
window?

Nov 21 '05 #7
Nicolay
So my question maybe must be: Can an ASP .NET page close it's browser
window?


As one I thought that is prevented by XP Sp2. Have a look what it all does
for IE, that will enlighten you in my opinion.

http://msdn.microsoft.com/library/de...psp2compat.asp

I hope this helps,

Cor
Nov 21 '05 #8
"Nikolay Petrov" <jo******@mail.bg> schrieb:
I use an JavaScript in my ASP .NET page to open new page, which
displays status for a long running operation.
What I need is a way to close that window, after the operation has
finnished.
So my question maybe must be: Can an ASP .NET page close it's browser
window?


\\\
window.close();
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #9

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

Similar topics

3
by: ThunderMusic | last post by:
Hi, I'm trying to have a MSN Messenger like form/app closing behavior. When I click on the X button, I only want the form to disappear and when I double-click on the notify icon or right-click...
5
by: Ron L | last post by:
I have an MDI application with a number of child windows. In each child window I am catching the Closing event and having the child window decide if it should set cancel to true. The intent here...
2
by: Ron L | last post by:
I have an MDI application which opens a number of child windows, each of which could have data in a state that needs to be saved. Each child window catches its Closing event and cancels it if the...
22
by: alecjames1 | last post by:
I have a form which the user must complete before closing. I have disabled the window x button and use my own exit button. When selected it checks to see if the user has completed the entries...
6
by: Al the programmer | last post by:
I want to catch the Closing event for my form. I created a test windows app using the wizard. I then create the Closing event by clicking the lightning bolt on the properties pane. The code is...
6
by: Barry Gast | last post by:
Hi. I have an MDI Parent form with multiple child windows. When I close the parent form, the Closing events of the children forms are not executing. Do I have to close all the child forms in the...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
1
by: Cedric | last post by:
Hello, I have a form that could be closed by a code keyed or selected in a combobox but when I select my code my program end up with an error (NullReferenceException) and not when I keying the...
2
by: Tom | last post by:
How is the best way to avoid validation when closing a window? For instance, I have a Windows Forms window which has a validation event for a text box. However, if one enters invalid data in then...
4
Fr33dan
by: Fr33dan | last post by:
Hi, I'm having trouble with a multi-threaded program crashing on a specific machine when the worker thread is not initialized at when the _FormClosing method of my main form called. Here is my...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.