I ran the .exe for my program from the debug folder. It worked, but when I closed it, I discovered that it was still listed on the processes list in the Task Manager.
I figure I must’ve forgotten a step, since it’s my first winforms program.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As long as the code in your
Mainmethod looks like this:Then you should be OK (assuming “MainForm” is the name of your main form). WinForms will exit the process when the form you pass in to
Application.Runcloses.Otherwise you can call
Application.Exit()yourself in your form’s “Closed” event handler.