473,385 Members | 1,356 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,385 software developers and data experts.

Closing a form from another form

Sounds simple enough when I do

Form2.Hide() calling this from Form1 it closes fine (or hides)

However, I have a form which is called from another form say Form3
which is called from Form2 and it won't close or hide.

I do

Form3.Close()

and nothing happens - no error message either.

Each form is defined at the top as dim formx as new formx()
where x is the number of the form.
K.
Jun 27 '08 #1
2 895
<kr*******@yahoo.co.ukschrieb
Sounds simple enough when I do

Form2.Hide() calling this from Form1 it closes fine (or hides)

However, I have a form which is called from another form say Form3
which is called from Form2 and it won't close or hide.

I do

Form3.Close()

and nothing happens - no error message either.

Each form is defined at the top as dim formx as new formx() where x
is the number of the form.
If you create several instances of a Form, they are not the same.

http://msdn.microsoft.com/en-us/library/x84ydca5.aspx
http://msdn.microsoft.com/en-us/library/b86b82w0.aspx
http://msdn.microsoft.com/en-us/library/tyd4tfw8.aspx

Armin

Jun 27 '08 #2
On May 3, 11:10 am, "Armin Zingler" <az.nos...@freenet.dewrote:
<kronec...@yahoo.co.ukschrieb
Sounds simple enough when I do
Form2.Hide() calling this from Form1 it closes fine (or hides)
However, I have a form which is called from another form say Form3
which is called from Form2 and it won't close or hide.
I do
Form3.Close()
and nothing happens - no error message either.
Each form is defined at the top as dim formx as new formx() where x
is the number of the form.

If you create several instances of a Form, they are not the same.

http://msdn.microsoft.com/en-us/libr.../tyd4tfw8.aspx

Armin
Sorry I am still not clear. So how do I close the form if they are all
not the same?

K.
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Brad Allison | last post by:
Is there an easy way to close one form when another opens? Thanks for the information. Brad
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
3
by: Charles Law | last post by:
Under what circumstances would e.Cancel be set to True on entry to the Closing event of an MDI child form? I have found that this is why my application won't close properly. I can explicitly set...
2
by: Keith | last post by:
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...
4
by: Academic | last post by:
Does it make sense to put this If e.Cancel Then Exit Sub at the beginning of form closing events so if the user cancels the app's exiting in one Closing routine he will not be asked again by...
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
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.