JumpyNET Posted June 3, 2005 Posted June 3, 2005 How do I end my program from code in C#? I wan't to create the same action which happens when I press the Close button in the top right corner of any window. So Environment.Exit(0); is not OK. Quote
Administrators PlausiblyDamp Posted June 3, 2005 Administrators Posted June 3, 2005 If you close the applications main form then it should exit the program. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
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.