Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winforms handler
Message
From
09/01/2007 10:23:09
 
 
To
08/01/2007 14:21:08
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01183380
Message ID:
01183794
Views:
18
>Where to find FormsHandler class for MDI child Windows ?

Hmmm ... well, Andrus, there is no FormsHandler class built-in to any of the .NET Framework classes ... the FormsHandler class that I showed in my previous post was my own code that I use in my application.

>MDI parent forma already has built-in child collection so I think MDI Forms Handler must use this, not create new collection.

Right ... that is what you'd use in an MDI form, the MdiChildren collecton ... I answered a question (from you) about closing MDI child forms back in November, Message #1172456:
foreach (Form o in this.MdiChildren)
	o.Close();
>Also this code must use .NET 2 Generic List type instead of ArrayList (you copied it from your old .NET tips column).

Well, this code was developed under .NET 1.1, before Generics came along in .NET 2.0. However, for such a simple method in which you are always closing a Form and calling a Form's .Close() method, why would you need to use anything but a Form? Basically there's no *need* to change my existing code to use a generic list, so I haven't changed my code or my example that I routinely post when people has about FormsHandlers. If someone wants to show me what that class would look like using a Generic List, then go for it. =0)

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform