473,480 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VB - Terminating Systray Application On Shutdown does not work (it does not exit

I have written an application that contains a notifyicon
that will not dispose or end when Windows shutsdown.

I have seen other posts where people are experiencing the
same issue (see post in the csharp group), so I know that
this is an issues for others as well.

Does anyone know how to capture the Windows Exit/Shutdown
event?

Any help would be greatly appreciated.

Thanks,
Erik
Nov 20 '05 #1
3 2093
If you are talking about the System Tray Icon not disposing ie. The icon
still stays after the app is gone,
Thats a problem with windows. (I hope I understood your Q correctly though).

Take any app with a systray icon, end-task it, the icon stays .... until you
take your mouse over it.
Usually what I do is, I capture the handle to the systray, (FindWindow), and
then I invalidaterect it ... that gets rid of the icon on exit .. rest
assured, the resources by then are released (even though the tray didn't
repaint itself).

Again, I might not have understood ur Q correctly.

"Erik Greene" <gr****@amtgi.com> wrote in message
news:1b****************************@phx.gbl...
I have written an application that contains a notifyicon
that will not dispose or end when Windows shutsdown.

I have seen other posts where people are experiencing the
same issue (see post in the csharp group), so I know that
this is an issues for others as well.

Does anyone know how to capture the Windows Exit/Shutdown
event?

Any help would be greatly appreciated.

Thanks,
Erik

Nov 20 '05 #2
"Erik Greene" <gr****@amtgi.com> schrieb
I have written an application that contains a notifyicon
that will not dispose or end when Windows shutsdown.


Ah, you can see it after Windows has shut down?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
You need a new monitor then.

"Armin Zingler" <az*******@freenet.de> wrote in message
news:ev**************@TK2MSFTNGP10.phx.gbl...
"Erik Greene" <gr****@amtgi.com> schrieb
I have written an application that contains a notifyicon
that will not dispose or end when Windows shutsdown.


Ah, you can see it after Windows has shut down?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4

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

Similar topics

6
9902
by: Action | last post by:
I can add a systray icon in normal windows application... but when i do it in windows service, the systray icon just don't show up is that because i don't have any "component" to contain the...
3
5479
by: Jon Bosker | last post by:
I have written an application that lives in the systray but when I try to close windows or logout it does not close my application and therefore prevents windows from shutting down or logging me...
4
1400
by: Ebrahim | last post by:
I have made several applications (not all are done yet) using the .NET framework but none of them seem to close well with the Application.Exit function. I use Windows.XP so when i do a Processes...
0
1450
by: Dan Baker | last post by:
I have an application that runs in the background, with a NotificationTray icon for access to the UI. I'm handling the "ENDSESSION" event, and trying to force my application to shutdown. I'm...
23
7532
by: Adam Clauss | last post by:
I have a C# Windows Service running as the NetworkService account because it needs to access a network share. As part of the service's initialization, I want the service to terminate, if an...
5
1487
by: Jammie | last post by:
Hi all, I have a major problem with my application. For some reason on win9x my application will not exit properly when the user shuts down there system. This doesnt seem to be a problem on XP....
0
1810
by: kapcreations | last post by:
I have a system tray app which gets the status of a windows service, and displays the appropriate icon for the status of the service in the systray. the problem I am having is the icon disapears...
4
3395
by: Markus Stoeger | last post by:
Hi, I have a problem with Application.Run() when Windows is shutting down. Please have a look at the copy&paste example program below. The application has no forms. It has only got a notify...
2
1874
by: Arvi | last post by:
Hello, Im quite new to c# windows application. i need to write a application which stays on the systray and listens to the SQL Table. (when the value is inserted as 0 - done thru Dataset and...
0
7055
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,...
0
7103
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...
1
6758
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
7010
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
5362
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
4799
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
3011
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
3003
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
572
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.