MDIForm Parent/Child forms BEST Practice
From: Edwinah63 (edwinah_at_customercare.com.au)
Date: 04/22/04
- Next message: Elio M. Gonzalez: "Re: Why SESSION variables fail if browser cookies OFF ?"
- Previous message: Bernie: "Oh Control Arrays where art thou?"
- Next in thread: EricJ: "Re: MDIForm Parent/Child forms BEST Practice"
- Reply: EricJ: "Re: MDIForm Parent/Child forms BEST Practice"
- Reply: Armin Zingler: "Re: MDIForm Parent/Child forms BEST Practice"
- Messages sorted by: [ date ] [ thread ]
Date: 21 Apr 2004 18:52:43 -0700
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 open/closed and their current state. now i can't.
before i didn't have to declare numerous named instances each time i
loaded or unloaded a form.
if i open a child form from another child form and try to assign
mdimain as the mdiparent it doesn't permit it, if i say f1.mdiparent =
me.mdiparent i get memory problems (as have others judging from the
groups).
all my current forms are declared public shared in mdiMain, but should
these be in a user made forms collection owned by a global module
(cMain)?
if i am finished with a child form, i want to unload it, not hide it,
but if i close a form in vb.net it extinguishes the instance.
when the mdi parent closes, i would like the app to terminate.
should i be setting mdi children to nothing or disposing them?
basically, what can/should i do to get the same mdi parent/child
management present in vb6 while still preserving the smallest
footprint possible in memory?
all comments/code greatly appreciated. i am probably not the only
programmer to ponder this question.
regards
Edwinah63
- Next message: Elio M. Gonzalez: "Re: Why SESSION variables fail if browser cookies OFF ?"
- Previous message: Bernie: "Oh Control Arrays where art thou?"
- Next in thread: EricJ: "Re: MDIForm Parent/Child forms BEST Practice"
- Reply: EricJ: "Re: MDIForm Parent/Child forms BEST Practice"
- Reply: Armin Zingler: "Re: MDIForm Parent/Child forms BEST Practice"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|