
Signature
Tim Wilson
.Net Compact Framework MVP
> While I don't think that's absolutely necessary, I would say out of good
> practice make sure to Close each open form before you Close your main form.
Whilst looking for something else I found sample code that appeared to
- Keep a count of each form object used
- have something that then would close each in turn on demand, decrementing
a counter too.
Of course I cannot find that code now that I *want* it :-)
Is the above method strictly necessary, or is it possible to build something
like (pseudocode alert!!!!!)
repeat with Obj = each object in mainForm
Obj.Close
end
Steve
Tim Wilson - 30 Jun 2004 18:02 GMT
In the help file for Form.Show() it indicates that "when a form is closed,
all resources created within the object are closed and the form is
disposed." Unless you are seeing some type of issue in your application I
would say that what you've pseudocoded wouldn't be that necessary. Just
close forms when you're done with them.

Signature
Tim Wilson
.Net Compact Framework MVP
> > While I don't think that's absolutely necessary, I would say out of good
> > practice make sure to Close each open form before you Close your main
[quoted text clipped - 16 lines]
>
> Steve
Steve Howard - 30 Jun 2004 18:15 GMT
> In the help file for Form.Show() it indicates that "when a form is closed,
> all resources created within the object are closed and the form is
> disposed." Unless you are seeing some type of issue in your application I
> would say that what you've pseudocoded wouldn't be that necessary. Just
> close forms when you're done with them.
OK, thanks Tim.
Steve