I have this problem: I built an application in c# .net 2.0 that is on the tray bar and everything works fine: if I click the close menu (that i\'ve added) I call Close(); of the main form and 开发者_
This seems to be mission impossible? According to the comments on this page: http://msdn.microsoft.com/en-us/library/system.windows.application.ex开发者_Python百科it.aspx , others also have trouble ar
I need to detect when Windows is shutdown (or restarted) or wh开发者_StackOverflow中文版en the user is logging off. I need to properly close the application before the application is closed.
I have a Win32 service, that needs to run a .NET executabl开发者_开发问答e on service stop (for cleanup reasons). I recently discovered that the cleanup never happens on shutdown, because the process
I have an application that hides itself on closing by the red cross. User can exit it by right-clicking tray icon and choosing Exit. But it would apparently block windows from shutting down, so I made
My application prevents windows shutting down, but only on some computers, and not all the time. Its a little tricky to debug.
This question already has answers here: Closed 11 years ago. Possible Duplicate: Shutting down a computer using Java
Since I install pending updates for my Ubuntu server as soon as possible, I have to restart my linux server quite often. I\'m running an webapp on that server and would like to warn my users about the
Some explanation: for a project I\'m working on I have to write a program that is running in the background, detects changes to files, and uploads the modified files to a web service to mak开发者_运维
I have a windows Service always running once PC started, how would i detect using .NET 3.5 or WMI, when the user or some other application/process has requested a shutdown or reboot in wind开发者_JS百