E
Edwinah63
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
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