Nested Forms - How to close?

  • Thread starter Thread starter Glyn Meek
  • Start date Start date
G

Glyn Meek

Here is a simplified example of the problem I have...Forms A, B and C are
relatively simple forms within the .net Framework for using Visual Basic.

Form A loads Form B to do some processing.

Form B normally terminates when an 'OK" or 'Cancel' button click is detected
and a Me.Close is executed.

Form B loads Form C to do processing.

How can I force close Form B when Form C closes without having to have the
user initiate some kind of Button Click action?I tried calling Me.close from
within Form B, on return from Form C, but it has no effect!!!!

Anyone Help?

Regards and thanks in advance

Glyn Meek
 
Thanks Agus, this is pretty much the structure I had in place. The
differences are that I was using me.close, and implementing my own passback
mechanism instead of using DialogResult (about which I knew nothing...lol).
I'll try and see if this tweaking makes the difference.

Regards

Glyn
 
Back
Top