PC Review


Reply
Thread Tools Rate Thread

Closing windows

 
 
Nikolay Petrov
Guest
Posts: n/a
 
      22nd Mar 2005
How to close browser windows from code

 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      22nd Mar 2005
"Nikolay Petrov" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
=?Utf-8?B?Q3JvdWNoaWUxOTk4?=
Guest
Posts: n/a
 
      22nd Mar 2005
Take a look at my (crouchie1998's) post here:

http://msdn.microsoft.com/newsgroups...2-ba2cfe48b93f
 
Reply With Quote
 
Crouchie1998
Guest
Posts: n/a
 
      22nd Mar 2005
See my (crouchie1998) post here:

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


"Nikolay Petrov" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How to close browser windows from code
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      22nd Mar 2005
"Crouchie1998" <(E-Mail Removed)> 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/>

 
Reply With Quote
 
Crouchie1998
Guest
Posts: n/a
 
      22nd Mar 2005
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


 
Reply With Quote
 
Nikolay Petrov
Guest
Posts: n/a
 
      24th Mar 2005
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?

 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      24th Mar 2005
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


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      24th Mar 2005
"Nikolay Petrov" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Explorer - problem closing multiple windows at once Dominiki Windows XP Help 0 28th Jul 2009 09:10 PM
Windows Mail keeps closing because DEP is closing for security =?Utf-8?B?V2luZG93IE1haWwgREVQIG1lc3NhZ2U=?= Windows Vista Mail 8 17th Jun 2009 08:56 PM
Windows Vista keeps closing all opened windows when X closed =?Utf-8?B?Q2J1cnkzNg==?= Windows Vista General Discussion 3 10th Aug 2007 08:48 PM
closing the pop up, closing all the browser windows bloodredsaint Windows XP Internet Explorer 1 5th Dec 2006 12:53 PM
C# Windows Form - Panel populated dynamically with button controls, Windows.Closing() becomes disabled. =?Utf-8?B?QnJ1Y2U=?= Microsoft C# .NET 1 18th Mar 2004 07:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:50 AM.