how to destroy a form with it`s hide

Jun 12 2007 1:08 PM
hi, well i'm trying to "destroy" a form with previously is hide, a sample code would be: FORM1.CS button1_click() { form2.show(); this.hide(); } FORM2.CS btnexit_click() { this.close() //here is my question form1.show(); ??????? form1.close(); ????? form1.ActiveForm.dispose(); // end of my question } QUESTION: WHAT COMMAND OR EVENT I MUST USE TO SHOW OR DESTROY THE FORM 1 AND THEN TO CLOSE THE ENTIRE APPLICATION thanks

Answers (1)