yahya Posted November 5, 2003 Posted November 5, 2003 Hi.. I am new to Windows application... I have 2 questions: 1. How could I launch the application that I developed into the system tray when the user login automatically. Just like MSN loading. 2. When the user closes the window form, the application should still run in the System tray. (Again like MSN) Currently I could run the application in the system tray by manually executing it and when I double click the Form appears on the screen. But when I close the form the icon in the System tray also closes. Quote
Administrators PlausiblyDamp Posted November 5, 2003 Administrators Posted November 5, 2003 1. Add the application to the users Startup group. 2. In the form's closing event (may be closed event) cancel the close and hide the form. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
yahya Posted November 5, 2003 Author Posted November 5, 2003 Thanks...but too short for me to grasp... Can u tell me how to disable or cancel the close event? Quote
*Experts* mutant Posted November 5, 2003 *Experts* Posted November 5, 2003 In the closing event type: e.Cancel = True This will stop the execution of the event because you canceled the event. Quote
yahya Posted November 5, 2003 Author Posted November 5, 2003 Thank you very much indeed.... :-) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.