473,382 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1324
* "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
7
by: Siv | last post by:
Hi, I have an MDI application that uses a generic "ShowPage" routine in a module that is called when I want to display a child form. The basic idea is that in the module I have declared each form...
2
by: Mario | last post by:
Hi, I am trying to create an application with multiple windows forms. The problem that I have is that after creating the window forms, I do not know how to open formN after closing Main form. ...
2
by: MORALBAROMETER | last post by:
Hallo, I want to write a programming with c#.Net having forms like MS Word. The main form A contain commonly used objects.I have many other forms (B,C,D) etc that have inherited from A. i realised...
2
by: Bob | last post by:
Hi, I have an app that requires 4 child forms each created on a separate thread. Each form holds a 3rd Party Phone answering control. The control will only answer the phone if the form has been...
14
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using VS2005 and .net 2.0. I'm creating an application that has 3 forms. I want allow users to move forward and backward with the forms and retain the data users have entered. I thought...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
0
by: Vivek | last post by:
I am having an issue with MDI form. I have an MDI form and some Child forms. In order to enable for a choice, I am displaying a message box in the FormClosing event of both the forms. When the form...
5
by: Neil | last post by:
"lyle" <lyle.fairfield@gmail.comwrote in message news:48c3dde7-07bd-48b8-91c3-e157b703f92b@f3g2000hsg.googlegroups.com... Question for you. I'm doing something similar, only, instead of opening...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.