473,378 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

MDI Child form collection

VJ
How do I unquiely identify a form in a collection of MDI Child forms.. The
form can have same name, and Title.. I am not sure if I want to use the
Tag..., I just want to do the way Window menu of the MDI window doing it ...

Thanks
VJ
Nov 21 '05 #1
3 1690
* "VJ" <vi********@yahoo.com> scripsit:
How do I unquiely identify a form in a collection of MDI Child forms.. The
form can have same name, and Title.. I am not sure if I want to use the
Tag..., I just want to do the way Window menu of the MDI window doing it ...


Maybe it's better to store references to the MDI children directly than
going over the 'MdiChildren' collection.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
VJ
Thanks HKW... I was just typing the response and going to say I did that to
resolve the problem..
Just store the OBJ reference in a collection and access it when you need. It
works really well...

Also just curious.. any performance issue when storing the reference???

VJ

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Or****************@TK2MSFTNGP15.phx.gbl...
* "VJ" <vi********@yahoo.com> scripsit:
How do I unquiely identify a form in a collection of MDI Child forms.. The form can have same name, and Title.. I am not sure if I want to use the
Tag..., I just want to do the way Window menu of the MDI window doing it
....
Maybe it's better to store references to the MDI children directly than
going over the 'MdiChildren' collection.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
* "VJ" <vi********@yahoo.com> scripsit:
Thanks HKW... I was just typing the response and going to say I did that to
resolve the problem..
Just store the OBJ reference in a collection and access it when you need. It
works really well...

Also just curious.. any performance issue when storing the reference???


Better performance than going over the 'MdiChildren' property when
implemented the right way...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mateo | last post by:
Let's say that I have panel control which is container control, and I need to access every child control inside panel control from JScript. I have this line of JS code: var oCollection =...
2
by: wASP | last post by:
Hi, I was under the impression that, when ASP rendered a page, it recursively traversed the hierarchy, executing all controls in each ControlCollection of every control in that hierarchy. I...
4
by: Danny Tuppeny | last post by:
Hi all, I've been trying to write some classes, so when I have a parent-child relationship, such as with Folders in my application, I don't have to remember to add a parent reference, as well as...
6
by: Edwinah63 | last post by:
Hi everyone, could someone give me some thoughts on the best way to manage mdi parent and child forms? in vb6 i could scroll through the forms collection and determine which forms were...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
10
by: SStory | last post by:
How can the MDI parent form know when an MDI child closes? I need to know when the last one closes because I have something on the MDI form that I need to clear out when all children are...
1
by: Vivek | last post by:
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...
13
by: Academic | last post by:
I have a MDI form, sometimes child forms and sometimes forms that are neither If I close the app the child forms closing and closed event happens followed by the Mdi form receiving the...
5
by: Earl | last post by:
I need to call a method on an owned child form, and am wondering if the best way of doing this is to capture the Closing event of the form that passes control back to the form where I have the...
0
by: Rotsey | last post by:
Hi, I have a MDI form with child forms and a Window menu. When a new child form is created or closed I want to update the menu with a item for the child window. Problem is I have it adding...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.