s

wpf when application is closed notify icon in system tray remains edit button Edit

author
Pooran Prasad Rajanna | calendar 09 September 2020 | 2535

In Windows forms or WPF application if we are using Notify Icon in the system tray before you close the application by issuing System.Windows.Application.Current.Shutdown(); set the NotifyIcon object's icon to null!