473,856 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WindowsFormsPar kingWindow problem - please help...

Hi

I am developping an application, and it runs fine... It is a monitor utilitie and runs on the background... When I close the application for example with Form1.Close() it shuts down succesfully

But when windows tries to shut it down (by logging off or by shutting down your computer), an end task window pops up for WindowsFormsPar kingWindow (twice). My application is forcebly shut down when I shut down this process. When I cancel the closing of this form I see my svhost.exe spike up to 100%. What is going on, and what can I do to fix this

Is there a possibility to somehow capture the "closing message" that windows sends, so that I can close it manually myself (this maybee avoiding the problem?)

I also noticed that when windows wants to close the window, none of my code in Form_closing() is executed

I anyone can help please... (I can send the whole project to you if needed

Jul 21 '05 #1
2 2253
Override the WndProc method and look for the WM_QUERYENDSESS ION message.

http://msdn.microsoft.com/library/de...ndingtopic.asp
"Kevin Chabot" <an*******@disc ussions.microso ft.com> wrote in message
news:C8******** *************** ***********@mic rosoft.com...
Hi,

I am developping an application, and it runs fine... It is a monitor utilitie and runs on the background... When I close the application for
example with Form1.Close() it shuts down succesfully.
But when windows tries to shut it down (by logging off or by shutting down your computer), an end task window pops up for WindowsFormsPar kingWindow
(twice). My application is forcebly shut down when I shut down this process.
When I cancel the closing of this form I see my svhost.exe spike up to 100%.
What is going on, and what can I do to fix this?
Is there a possibility to somehow capture the "closing message" that windows sends, so that I can close it manually myself (this maybee avoiding
the problem?).
I also noticed that when windows wants to close the window, none of my code in Form_closing() is executed.
I anyone can help please... (I can send the whole project to you if needed)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.691 / Virus Database: 452 - Release Date: 26/05/2004
Jul 21 '05 #2
Thank you very much :)
Jul 21 '05 #3

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

Similar topics

0
368
by: Brentonn | last post by:
We are developing a Web-based application using .Net. When the application .exe is running, it randomly locks up and has to be restarted after ending the process using the Windows task manager. While it is locked a generic Windows icon with the name "WindowsFormsParkingWindow" appears in the task popup window (Alt-Tab). What is this object? And how can we avoid the conflict
0
1707
by: Kurt Watson | last post by:
I’m having a different kind of problem with Hotmail when I sign in it says, "Web Browser Software Limitations Your Current Software Will Limit Your Ability to Use Hotmail You are using a web browser that Hotmail does not support. If you continue to use your current browser software we cannot guarantee that Hotmail will work correctly for you". Please help, this is very annoying. I have been searching for help on
7
3634
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title> </head> <style type="text/css">
0
3197
by: spam | last post by:
I've got a problem with a VB.NET app that has been written to keep two directories in sync. The problem is that when I log off the machine, I get the dreaded WindowsFormsParkingWindow not responding message. I've seen the article at http://dotnet.org.za/johannds/archive/2004/03/08/650.aspx, but this will not fix my issue because I am not deleting controls. I have a form with two labels and a progressbar on which open once at the beginning...
23
3302
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application to create certain textboxes, labels, and combo boxes? Any ideas would be appreciated. Thanks
0
1552
by: Brian Scott | last post by:
Has anyone ever come across "windowsformsparkingwindow" yet? I have a major problem with this 'phantom' window that appears on my alt - tab list but does not activate. When it turns up my main form becomes greyed out and no mouse clicks respond any more leaving the program disabled. There appears to be no constant pattern to this other window disabling my main window. The only information I can gather is that...
2
433
by: Kevin Chabot | last post by:
Hi I am developping an application, and it runs fine... It is a monitor utilitie and runs on the background... When I close the application for example with Form1.Close() it shuts down succesfully But when windows tries to shut it down (by logging off or by shutting down your computer), an end task window pops up for WindowsFormsParkingWindow (twice). My application is forcebly shut down when I shut down this process. When I cancel the...
0
1007
by: Verinex | last post by:
Hello all, I am having a problem with the WindowsFormsParkingWindow. The problem I am having is that on some machines (currently I know of only two) when logging off I get the “WindowsFormsParkingWindow is not responding” End Task dialog. I understand that the WindowsFormsParkingWindow is used as a placeholder parent for controls in .Net, so I initially thought that there might be some controls that have not been disposed. I used...
1
9670
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
0
9762
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11057
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10782
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
10384
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7932
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7094
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
5958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4575
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 we have to send another system
3
3201
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.