R
RBarryYoung
How can I get the following two features in the same program in
VS2005?:
1) Access to the command-line arguments (cmdArgs()) that started my
App.
2) Shutdown Mode = "When last Form exits".
The first feature requires a "Sub Main(cmdArgs())", however my app
exits when the Main Sub exits, EVEN if I have an open & running Form.
The second feature seems to require that I specify my project type as
"Windows Applicaiton" and enable "Application Framework" (is this
documented anywhere?). BUT, the Windows Application Framework has it's
own MAin Sub and apparently won't call mine. Even if it did, I doubt
that it would be nice and pass cmdArgs() to me.
Since this is the way that all VB apps used to work, I have to
believe that there is a way to do it. However, I sure cannot find it.
Help, please.
-- Barry Young
VS2005?:
1) Access to the command-line arguments (cmdArgs()) that started my
App.
2) Shutdown Mode = "When last Form exits".
The first feature requires a "Sub Main(cmdArgs())", however my app
exits when the Main Sub exits, EVEN if I have an open & running Form.
The second feature seems to require that I specify my project type as
"Windows Applicaiton" and enable "Application Framework" (is this
documented anywhere?). BUT, the Windows Application Framework has it's
own MAin Sub and apparently won't call mine. Even if it did, I doubt
that it would be nice and pass cmdArgs() to me.
Since this is the way that all VB apps used to work, I have to
believe that there is a way to do it. However, I sure cannot find it.
Help, please.
-- Barry Young