Program stops working when the form looses focus

Printable View