Question Close button?

Unknown Name

New member
Joined
Jun 25, 2015
Messages
1
Programming Experience
3-5
I have a menu strip with a button that says close. How would I make that button close the program?
 
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.
 
Back
Top