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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.