You can either:
1. Put the initialization in the New of the startup form,
then put cleanup
in one of the closing events (Close, Closing, etc).
2. You can have a Sub Main. Put it in a module. Then from
the project
properties, choose sub Main as your starting object.
On 3/28/06, Mattias Sjögren <mattias mvps.org> wrote:
>
> Kelly,
>
> > but how do instantiate the first one if I can't
have a Sub Main?
>
> You can still have a Sub Main as your program's entry
point.
>
>
> Mattias
>
> ===================================
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|