Closing a form from another form
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
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

MykonineRank #2,671 · 521 reputationPosted Oct 26, 2004, 5:36 PM EDT
ssett_cn16 reputationPosted Nov 1, 2004, 4:33 PM EST
bhargavan26 reputationPosted Nov 4, 2004, 11:13 AM EST