I have a main form, then this form spawns another form (Form A) as a form.showdialog (). That dialog box then has a button that spawns another form (Form B) through the form.showdialog (). All of this works fine.
Now when I press a button on Form B, and set the "this.DialogRes ult = DialogResult.Ca ncel", then close, it goes back to FormA, and Form B closes. Then Form A closes and returns to the main form. This is not what I am wanting.
I want Form A to stay open. It seems like the DialogResult is being sent back through all the forms... How can I prevent this?
Now when I press a button on Form B, and set the "this.DialogRes ult = DialogResult.Ca ncel", then close, it goes back to FormA, and Form B closes. Then Form A closes and returns to the main form. This is not what I am wanting.
I want Form A to stay open. It seems like the DialogResult is being sent back through all the forms... How can I prevent this?
Comment