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.