471,354 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Stop opening multiple instances of the child form

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
Jan 1 '06 #1
1 3257
Vivek,

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

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

Regards - Octavio

"Vivek" <vi****@xtra.co.nz> escribió en el mensaje
news:uI**************@TK2MSFTNGP14.phx.gbl...
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

Jan 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Rahul | last post: by
reply views Thread by Bob Dydd | last post: by
26 posts views Thread by Paul Mars | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.