Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi friends. i want a code for the time that when user click on close button or control buttons of form. program go to the system tray.

thank you.
Posted
Comments
PIEBALDconsult 5-Aug-14 10:41am    
Is that what your users want? I don't like applications that do that (e.g. Lync). When I say "close", just frackin' _close_ already! If I want you to minimize, I'll _tell_ you to minimize.
_Starbug_ 5-Aug-14 14:00pm    
i think your word is correct for professional users and computer mans. but for the users that they are amateur and are begginner it can be good idea. because they do not know the importance of program.
PIEBALDconsult 5-Aug-14 14:12pm    
"they do not know the importance of program"

You don't get to decide that for the users. The users know how important it is for them.
_Starbug_ 5-Aug-14 14:37pm    
think about the time that user work with antivirus program. when he click on close button the program must not closed because it is important program in computer.
PIEBALDconsult 5-Aug-14 14:58pm    
With an antivirus there is usually the background part that the user doesn't interact with (and can't close) and the UI part which he can -- these two parts should not be in the same process.

1 solution

Refer How to Minimize an Application to the Taskbar Tray in C#[^] and handle it in Form_Closing Event.


--Amy
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900