Neven Draskovic

Neven Draskovic

  • NA
  • 117
  • 107.5k

Application closing problem

Dec 29 2011 10:53 AM
Hey

I have an application that uses multiple forms, and I encountered a problem when closing one of the forms. This is the problem - the form that was created as Form1 is no longer the "main" form in the application, I added another that calls it. I changed the appropriate code in the Program.cs so that the other form (lets call it Form2) is the first one displayed, and user can call any other from it (there is a total of 5 forms in the application). And of course, when I close Form2, the entire application closes with it - this is fine. But, when I close the Form1, it also closes all other forms, and it shouldn't, it should only close itself and leave Form2 displayed and available for usage. How can I fix this problem?

Thanks

Answers (6)