Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How to manage Closing and System Tray minimizng condition on Form Closing event?

$
0
0

Hi,

I have a winforms application in c# where I run a process. There is a stop button on the window which Stops the processes and closes the window. Now i have to handle 2 events. If the uses closes the screen using the "X" then the window should run in the system tray. And like wise on clicking on the TrayIcon the window should come to the usual state. This part i have achieved.

Now when I click the stop button on the window, the window should close. But still its going to the system Tray. Im not able to handle this. Any help would be really appreciated.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>