bhargavan

bhargavan

  • NA
  • 26
  • 0

Closing a form from another form

Oct 26 2004 4:12 PM
Hey guys, I am opening Form2 when a button is clicked on Form1. After the user finishes entering some data in Form2, on clicking a button I want to close both Form2 and Form1. I could close Form2 that was very easy. But I could not close Form1. I tried using 'this.ParentForm.Close();' on the button click event on Form2. But that doesn't work. Any ideas on how to solve this? - Unbreakable

Answers (3)