Hi, I'm using VS2005 and .net 2.0. My main form has a Next button which makes the main form invisible and starts a new form which I'll call form2. The form 2 has a Previous and Next button. The previous button would make the main form visiable again. The next button would invoke a form3. both of these buttons would make form2 invisible. The form3 has a previous button to go back to form2 vislble and make itself invisible.
My question is, if the user is closing the application either at form2 or form3 then how do I make sure all forms are closed? Would coding to close the main form automatically close all the chidren form in the approperate order? If not, how can I address this? Becuase right now it's causing memory correuption in my application. Thanks.