title: Close program after pressing "Close"
body: <p>I'm facing some problem, when i start my program i run WindowForm1 and then user had to type password and username if it's correct then it's exit form1 and run form2. If user type wrong password or username then he had chance to retype this or he can Close program with the "red X" - which works ok. 
  But when the password and username were correct and he had Form2 running when he press "close" application still run in the background. 
  Can you please give me any info how to close this app when he press close on Window Form 2.</p>