Why doesn't my notifyicon application exit when I use Application.Exit () or Form.Close ()?

I have a Windows form application that goes into the Notifyicon system tray, and I tried calling Application.Exit () or Me.Close () to close the program. But does not work to close the program. What is the correct way to close it?

+3
source share
1 answer

'It is a good idea to make the system tray icon invisible until the end of the “application”, otherwise it may linger in the tray when the application “no longer works”.

( ), , , , , . , - , , .

, : , , , , , " , , " ! .

, . , .

, , . , Application.Exit() - , . - .

"", . - .

, !

+4

Source: https://habr.com/ru/post/1761638/


All Articles