470,628 Members | 2,312 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,628 developers. It's quick & easy.

Multiple Form Issue - Closing Forms

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.
Nov 20 '05 #1
2 1215
* "Keith" <an*******@discussions.microsoft.com> scripsit:
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%23xQOutWDHA.2100%40TK2MSFTNGP11.phx. gbl>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
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'"

-----Original Message-----
* "Keith" <an*******@discussions.microsoft.com> scripsit:
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%23xQOutWDHA.2100%

40TK2MSFTNGP11.phx.gbl>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mario | last post: by
2 posts views Thread by MORALBAROMETER | last post: by
2 posts views Thread by Bob | last post: by
14 posts views Thread by =?Utf-8?B?UHVjY2E=?= | last post: by
11 posts views Thread by Zytan | last post: by
reply views Thread by Vivek | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.