Quote Originally Posted by PeerDk View Post
I got tired of not being able to find the error, so I made a button with the code Application.exit. Then form.closing and form.closed suddenly work.

I simply don't understand why form.closing doesn't work when I press the red cross in the form, so the program closes.
What red cross are you pressing?

Are any exceptions being thrown?