How do I start up with sub Main?
How do I start up with sub Main?
I created a sub Main in a class. I clicked properties on my project. It provided a combobox of possible startup forms, but nowhere could I find an option to choose sub Main.
In case that question is answered, which is the correct code?
Sub Main
application.run(frmstartup)
or application.run(frmstartup as new frmStartUp)
or something else?
Thanks,
Dennist
[445 byte] By [
dennist] at [2008-1-27]
To get Sub Main to appear in the Startup Form combobox you need to uncheck the 'Enable application framework' checkbox which is right below the startup form combo box. This will add sub main to the list of available startup objects.
Doing this will turn off the application framework so you won't have access to the functionality it provides, like the application level events, shutdown modes, etc.
Thanks,
Jay