473,473 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Collect all open Windows.Forms and close them

Hi,

I'm writing an application which should be able to close all open forms
except the main one. Thisfore I'm collecting all forms in an arraylist
before I show them, but I don't want to do that because that's a lot of work
and I'm not allowed to miss one call.

So, my question is: Is there something like a "container" or list which
contains all controls I can step through and find out all open forms?

thanks,
volker jobst
Nov 20 '05 #1
2 1313
Hi,

Sorry there is no built in function for that. Here is an article on
how to create a forms collection

http://msdn.microsoft.com/library/de...et05132003.asp

Ken
-----------------------
"Volker Jobst" <bu****@gmx.de> wrote in message
news:ub**************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm writing an application which should be able to close all open forms
except the main one. Thisfore I'm collecting all forms in an arraylist
before I show them, but I don't want to do that because that's a lot of work and I'm not allowed to miss one call.

So, my question is: Is there something like a "container" or list which
contains all controls I can step through and find out all open forms?

thanks,
volker jobst

Nov 20 '05 #2
Hi,

Sorry there is no built in function for that. Here is an article on
how to create a forms collection

http://msdn.microsoft.com/library/de...et05132003.asp

Ken
-----------------------
"Volker Jobst" <bu****@gmx.de> wrote in message
news:ub**************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm writing an application which should be able to close all open forms
except the main one. Thisfore I'm collecting all forms in an arraylist
before I show them, but I don't want to do that because that's a lot of work and I'm not allowed to miss one call.

So, my question is: Is there something like a "container" or list which
contains all controls I can step through and find out all open forms?

thanks,
volker jobst

Nov 20 '05 #3

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

Similar topics

3
by: stumorgan | last post by:
There is probably an extremely simple answer to this question and I'm just being foolish. I have a main form (let's say FormMain) which opens other forms (let's say Form1, Form2). How do I keep...
3
by: Michelle Stone | last post by:
hi al i have "variab1 = window.open ("a.aspx", "helloworld"); i do this inside a RegisterStartupScrict ("key", "<script language=javascript>******</script>"); where ***** is hte javascript...
2
by: Volker Jobst | last post by:
Hi, I'm writing an application which should be able to close all open forms except the main one. Thisfore I'm collecting all forms in an arraylist before I show them, but I don't want to do that...
3
by: Karan | last post by:
I am calling finalize when form2 loads and deactivates form1 which closes form1. However, same thing is not happening in form2 because finalize is already called. Does anybody has solution to it....
2
by: George Shui | last post by:
I use webBrowser to open a Word document, when I use this.webBrowser.dispose(), the WinWord Process end. while I use this.webBrowser = null, GC.Collect() , the WinWord Process still alive. I...
3
by: Ronald S. Cook | last post by:
I know how to close and open a form... Well.. but can you tell me how can I do this..... Example... There are 2 forms...named formA and formB and each of them have their own button named...
13
by: Academic | last post by:
I have a MDI form, sometimes child forms and sometimes forms that are neither If I close the app the child forms closing and closed event happens followed by the Mdi form receiving the...
7
by: Lee | last post by:
Hey all, I'm using the following code to send stuff accross the network, appologies for it being in full, but I've really no idea exactly where this error is occuring. =======network...
3
by: rajashekar4dotnet | last post by:
how to open one form from the other form and close the first form if there are only two forms in windows application(VB.net) i had tried this method dim f as new form2 form2.show( )...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.