How do i make my program End when i hit the X button?

Printable View