all groups > c# > january 2006 >
You're in the

c#

group:

Stop opening multiple instances of the child form


Re: Stop opening multiple instances of the child form Octavio Hernandez
1/1/2006 1:14:07 PM
c#:
Vivek,

There is already such a collection, MdiChildren[] in the Form class:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsFormClassMdiChildrenTopic.asp

Regards - Octavio

"Vivek" <viveks@xtra.co.nz> escribió en el mensaje
news:uIgVGUrDGHA.3064@TK2MSFTNGP14.phx.gbl...
[quoted text, click to view]

Stop opening multiple instances of the child form Vivek
1/1/2006 10:24:49 PM
Hi,

I am developing a MDI application. I need to track the child forms open so
that I can stop a user from opening the multiple instances of the same child
form. Now what is the best way of achieving it. I tried using an Forms
Array but is not the most efficient way. I think I can create a collection
but then how do I create a global collection that can be accessed from all
the forms. Please help.

Thanks

AddThis Social Bookmark Button