List Info

Thread: Best way to run pre-form load code on startup




Best way to run pre-form load code on startup
user name
2006-03-28 20:28:05
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 <mattiasmvps.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

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )