I wrote a simple windows form in VC12 which works fine. However, I am unable to terminate it properly. Upon clicking either the 'X' (close button) or a button I put in with the code,
The GUI disappear/closes but the process is actually still running when I check under task manager. Please advice, thank you.