I am referring to accessing the system tray, rather than reducing to the system tray, i.e. when you click the "red cross" in the upper right corner of the Windows form, instead of closing the application, it launches in the system tray.
You can connect to the event of closing the form and cancel the closing of the event and hide the form
code example
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = true; this.Hide(); }
Handle the FormClosing event, block Close ( e.Cancel = true) and instead collapse to the system tray , as if you were, well, minimizing to the system tray .
e.Cancel = true
, , , . , , .
"" , , (, )
, adobe , - , , , , , , .
Source: https://habr.com/ru/post/1761471/More articles:Portable key codes in X11? - keyboard-eventsLaunch CLR application at UAC integrity level? - c #Good readable test names in C # - c #запрос с строковыми манипуляциями - sql-serverread files in a folder - fileKilling processes in Windows 7 - windows-7Why is Nhibernate Interceptor not called? - c #scattering diagram with equal axes - rParse empty / whitespace with RegexParsers - scalaScala комбинаторы парсеров для языка, встроенного в html или текст (например, php) - scalaAll Articles