Multiple Form Issue - Closing Forms

K

Keith

Moving from form to form seems straight forward - but how
would one go about closing a form FROM another form?

I use me.close - to close out a form and the following to
open ("jump to") a new form:
dim f2 as new form2
form2.showdialog()
How would one go about closing a form - FROM - another
form? In other words closing form 1 - FROM - form2

Thank you.
 
H

Herfried K. Wagner [MVP]

* "Keith said:
Moving from form to form seems straight forward - but how
would one go about closing a form FROM another form?

I use me.close - to close out a form and the following to
open ("jump to") a new form:
dim f2 as new form2
form2.showdialog()
How would one go about closing a form - FROM - another
form? In other words closing form 1 - FROM - form2

<URL:http://www.google.de/groups?selm=u#[email protected]>
 
G

Guest

Thank you for the post reply - but that does not answer my
question. This code reference - will close form1 and open
form2. I know how to do that.

I'm saying - if one had 3 forms. 1, 2, and 3 - 1 has a
button that opens 2 but leaves 1 open. 2 has a button
that opens 3 and leaves 2 open. Let's say I want to close
form 1 or 2 - FROM form 3 - how would I do that. Every
time I attempt to write some code to close form1 or form2 -
I get an "An unhandled exception of
type 'System.NullReferenceException'"
 

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