Page 1 of 1

System Tray Application

Posted: Mon May 03, 2021 9:40 am
by jdainsworth
I am working on a System Tray Application that i am developing in PowerShell Studio. I would like to execute some cleanup code if someone clicks on the exit menu item. I was hoping i might be able to do it with a powershell.exiting event, but that event doesn't appear to fire.

Any advice on that?

Re: System Tray Application

Posted: Mon May 03, 2021 5:15 pm
by jvierra
Use a project and package it then use the Application_Exit event to do the cleanup or just place the code after the call to the main form.

Re: System Tray Application

Posted: Wed May 12, 2021 5:32 am
by MadeleineBailey
Txh for answer, It helped!