BeeJ
10/29/2013 7:07:00 PM
After serious thinking Arne Saknussemm wrote :
>>> hmm... given that you DID NOT declare the form instance "as New" <g>
>>> what you asked is a no-brainer; the "modal" form will raise the
>>> unloading event right before being unloaded and the unload will
>>> complete as soon as you'll exit your event handler, so setting the
>>> reference to nothing isn't needed; then ok, if you want to ensure to
>>> clean up after yourself you may add some "set ... nothing" code
>>> inside your "main form" unload event
>
>> Maybe a little tutorial on different ways to instantiate a form then
>> how to make sure it is unloaded from memory when through with it
>> would be helpful.
>
> Internet is that way --> and there you may find plenty of infos and
> tutorials, given that you'll use a bit of your time to search, read and
> understand; just to add a bit, you should consider a VB6 form like a
> class with a GUI this means that you may deal with a form just like you
> do with a class module (add and use properties, methods and events),
> sure, a Form may have a slightly different lifecycle since a user may
> decide to close it (it isn't possible with a class) but it shouldn't be
> difficult dealing with that
Also, I respect the gurus in this group more that the wild internet so
if I cannot find an answer on the web I come here. Even when I find an
answer I still may ask here for their sage advice.