Handle the Click event and call Application.Exit. If the code is in the main/last form then simply calling Close on that form would also work, but Application.Exit is more self-documenting if your actual intention is to exit the application.
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.