PC Review


Reply
Thread Tools Rate Thread

Collect all open Windows.Forms and close them

 
 
Volker Jobst
Guest
Posts: n/a
 
      6th Apr 2004
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


 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      6th Apr 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How close/open forms in Windows app? Ronald S. Cook Microsoft C# .NET 3 8th Oct 2006 05:00 AM
Forms: Buttons to open other forms and close button Veli Izzet Microsoft Access 3 23rd Aug 2005 07:44 AM
Open & Close forms postman Microsoft Access Form Coding 2 15th Mar 2005 07:14 PM
Windows.Forms and GC.Collect PrashantBrall Microsoft Dot NET Framework Forms 0 5th Nov 2003 04:39 AM
Windows.Forms and GC.Collect Bryan Livingston Microsoft Dot NET Framework Forms 0 10th Oct 2003 09:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:47 PM.