criflou

criflou

  • NA
  • 2
  • 0

Closing one parent forme by closing the modal one

Mar 3 2004 5:50 AM
Hi first , i speak frensh and i will explane in english so sorry if theres some mistakes. i want to close immediatly a form by closing another one . how may i do this please? i have a form : Form1 fr = new Form1(); fr.ShowDialog(); in this form there's a button ,when clicking on it anoter modal form is shown. Form2 fr2 = new Form2(); Form2.ShowDialog(); In this Form , i have a button , when clicking on it i close Form2 , and i want to close Form1 too , How can i do this : OnClick event of the button i write: this.Close(); //close fr2 ?????????????? // HOW to close fr : the parent window I hope i was clear much thanks

Answers (1)