Click to See Complete Forum and Search --> : Disposing the parent form


bohemian
March 31st, 2003, 11:28 AM
Hello all,
I am fairly new to C# so sorry if this sounds stupid.

I have 2 forms. Form1 has a button on it, which when pressed shows Form2 (as a dialog box). I have another button on Form2. When the user presses Form2 I want it to dispose of itself (Form2) and also its parent (Form1). How can I do this?
Thanks in advance.

bohemian
March 31st, 2003, 12:23 PM
Please disregard. I think I have this figured out.

pareshgh
March 31st, 2003, 03:39 PM
you have an edit option to edit your own post. so no need to create new post for that.

hope this helps to you,
Paresh