473,480 Members | 2,351 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 3442
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
5251
by: Rahul | last post by:
Hi. I am part of a group in my univ where we organize a programming contest. In this contest we have a UDP based server. The server simulates a game and each contestant is to develop a team of...
0
1154
by: Bob Dydd | last post by:
Hi Everybody I have a control on a form that is a hyperlink to a website. My question is how do I stop new instances of MS Internet Explorer opening up everytime I click on the hyperlink...
12
3197
by: (Pete Cresswell) | last post by:
I know I can open many instances of a given form, but I've never done it. Now I'm analyzing an application where that seems like just the ticket: Many investment funds, *lots* of data points for...
11
1973
by: MLH | last post by:
My alzheimer moments occur with greater frequency these days, it seems. I sometimes open Access and the same dbase in a second instance and work on items. If I modify a form and discover later...
5
4286
by: Shuaib | last post by:
I wonder if anybody could shed some light on a problem I am encountering. I have written a program in C that runs on Solaris 2.8. At busy times of the day there may be multiple instances of it...
26
1913
by: Paul Mars | last post by:
FormParent load opens FormChildA. FormChildA btn click opens FormChildB. (FormChildA and FormChildB are both children of FormParent) (FormChildA and FormChildB are different forms) Problem:...
2
5938
by: guy | last post by:
I have a base winform Base and a form that inherits from it Child in the base form there is an event handler for a combo box click Protected Overrideable Sub...
2
2899
by: Prabhudhas Peter | last post by:
If I click a menu to open a form which already open...the vb.net opens a new window while existing open window is there...i want to restric the opening of a new instance of an already opened...
11
12777
by: Tony K | last post by:
I have a MDI application. On the menu toolstrip child forms are selected from one of the menus. I don't want to play the disable/enable menu item game. I have selected that open forms are added...
0
7048
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7050
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7091
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
6743
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...
1
4787
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4488
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
2999
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1303
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
564
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.