Nested Forms - How to close?

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
 
G

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top