How can you detect application close event with no form?
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
I have an vb.net application that is a module that uses a "application.run"
in the sub main to start. There is no form involved (just a system tray
icon)
How can you detect when the application is being closed? It is easy enough
if the user selects "exit" from this tray icon but how can you detect if
Windows is closing the program down? Normally I would simply do something in
the Form.Closing event but without a form how can you determine that the
application is being closed by Windows?
.
Relevant Pages
- Re: How can you detect application close event with no form?
... >in the sub main to start. ... There is no form involved (just a system tray ... > enough if the user selects "exit" from this tray icon but how can you ... > determine that the application is being closed by Windows? ... (microsoft.public.dotnet.languages.vb) - Overriding the "X" control and using WndProc
... I have an application that should run in the system tray while open. ... the "X" button is pushed on the form...but without closing the app. ... > Private Sub frmMain_Closing(ByVal sender As Object, ... and windows can't shutdown without closing my app first. ... (microsoft.public.dotnet.languages.vb) - JDIC help
... I am trying to write a program for inserting a tray icon in windows ... system tray. ... But I am getting error as 'package org.jdesktop.jdic.tray.* not ... (comp.lang.java.help) - shift tray icon position - xp
... Is there anyway to shift the icon position in the system tray in XP? ... In windows 95/98/NT all you had to do was delete the tray icon then ... Malcolm Reeves BSc CEng MIEE MIRSE, Full Circuit Ltd, Chippenham, UK ... (alt.comp.lang.borland-delphi) - Re: Windows defender And extra programmes on the system tray
... I will show a list of the programme's in the Windows Defender that are 'Permitted' and 'Not yet classified.' ... The icon does not show in the system tray on startup even though it says that it is permitted. ... Microsoft Media Centre Tray Applet- Permitted- - ... Are all the extra programmes I have never seen before in the system anyway and they are there by way of a Windows Update? ... (microsoft.public.windows.vista.general) |
|