468,780 Members | 2,337 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,780 developers. It's quick & easy.

VS 2003 vs 2005 Startup properties

Rob
In VS2003 you had the option to select "Sub Main" as the Startup Object

It appears this option is not present in VS2005...

Is this the case ?

Thanks !
May 14 '07 #1
8 997
On May 14, 7:32 am, "Rob" <r...@yahoo.comwrote:
In VS2003 you had the option to select "Sub Main" as the Startup Object

It appears this option is not present in VS2005...

Is this the case ?

Thanks !
You must turn off the application framework first - then Sub Main will
show up in the startup object drop down. You'll probably want to add
"Application.EnableVisualStyles()" and maybe even
"Application.SetCompatibleTextRenderingDefault(Fal se)" to your Sub
Main to add back the features removed by unchecking the application
framework.

Thanks,

Seth Rowe

May 14 '07 #2
Rob
Instead of doing that... where would be a better palce to put some startup
code that applies to the whole program ?

Example... I place some code here to ensure that only 1 instance of the
program is running...

Thanks,
Rob


"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@w5g2000hsg.googlegro ups.com...
On May 14, 7:32 am, "Rob" <r...@yahoo.comwrote:
>In VS2003 you had the option to select "Sub Main" as the Startup Object

It appears this option is not present in VS2005...

Is this the case ?

Thanks !

You must turn off the application framework first - then Sub Main will
show up in the startup object drop down. You'll probably want to add
"Application.EnableVisualStyles()" and maybe even
"Application.SetCompatibleTextRenderingDefault(Fal se)" to your Sub
Main to add back the features removed by unchecking the application
framework.

Thanks,

Seth Rowe

May 14 '07 #3
On May 14, 8:32 am, "Rob" <r...@yahoo.comwrote:
Instead of doing that... where would be a better palce to put some startup
code that applies to the whole program ?

Example... I place some code here to ensure that only 1 instance of the
program is running...

Thanks,
Rob

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@w5g2000hsg.googlegro ups.com...
On May 14, 7:32 am, "Rob" <r...@yahoo.comwrote:
In VS2003 you had the option to select "Sub Main" as the Startup Object
It appears this option is not present in VS2005...
Is this the case ?
Thanks !
You must turn off the application framework first - then Sub Main will
show up in the startup object drop down. You'll probably want to add
"Application.EnableVisualStyles()" and maybe even
"Application.SetCompatibleTextRenderingDefault(Fal se)" to your Sub
Main to add back the features removed by unchecking the application
framework.
Thanks,
Seth Rowe
Example... I place some code here to ensure that only 1 instance of the
program is running...
If thats all your sub main does, just scrap it and check the "Make a
single instance application" on the application framework options box.

Thanks,

Seth Rowe

May 14 '07 #4
Rob
Do you see any case for not starting with a form ?

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
On May 14, 8:32 am, "Rob" <r...@yahoo.comwrote:
>Instead of doing that... where would be a better palce to put some
startup
code that applies to the whole program ?

Example... I place some code here to ensure that only 1 instance of the
program is running...

Thanks,
Rob

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@w5g2000hsg.googlegr oups.com...
On May 14, 7:32 am, "Rob" <r...@yahoo.comwrote:
In VS2003 you had the option to select "Sub Main" as the Startup
Object
>It appears this option is not present in VS2005...
>Is this the case ?
>Thanks !
You must turn off the application framework first - then Sub Main will
show up in the startup object drop down. You'll probably want to add
"Application.EnableVisualStyles()" and maybe even
"Application.SetCompatibleTextRenderingDefault(Fal se)" to your Sub
Main to add back the features removed by unchecking the application
framework.
Thanks,
Seth Rowe
>Example... I place some code here to ensure that only 1 instance of the
program is running...

If thats all your sub main does, just scrap it and check the "Make a
single instance application" on the application framework options box.

Thanks,

Seth Rowe

May 14 '07 #5
On May 14, 9:18 am, "Rob" <r...@yahoo.comwrote:
Do you see any case for not starting with a form ?

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@p77g2000hsh.googlegr oups.com...
On May 14, 8:32 am, "Rob" <r...@yahoo.comwrote:
Instead of doing that... where would be a better palce to put some
startup
code that applies to the whole program ?
Example... I place some code here to ensure that only 1 instance of the
program is running...
Thanks,
Rob
"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message
>news:11**********************@w5g2000hsg.googlegr oups.com...
On May 14, 7:32 am, "Rob" <r...@yahoo.comwrote:
In VS2003 you had the option to select "Sub Main" as the Startup
Object
It appears this option is not present in VS2005...
Is this the case ?
Thanks !
You must turn off the application framework first - then Sub Main will
show up in the startup object drop down. You'll probably want to add
"Application.EnableVisualStyles()" and maybe even
"Application.SetCompatibleTextRenderingDefault(Fal se)" to your Sub
Main to add back the features removed by unchecking the application
framework.
Thanks,
Seth Rowe
Example... I place some code here to ensure that only 1 instance of the
program is running...
If thats all your sub main does, just scrap it and check the "Make a
single instance application" on the application framework options box.
Thanks,
Seth Rowe
For your project or any project?

Thanks,

Seth Rowe

May 14 '07 #6
Rob
For any project that would be of the "Windows Application" type ?

Just want to know if there are some good cases for doing this...

Thanks,
Rob
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
On May 14, 9:18 am, "Rob" <r...@yahoo.comwrote:
>Do you see any case for not starting with a form ?

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@p77g2000hsh.googleg roups.com...
On May 14, 8:32 am, "Rob" <r...@yahoo.comwrote:
Instead of doing that... where would be a better palce to put some
startup
code that applies to the whole program ?
>Example... I place some code here to ensure that only 1 instance of
the
program is running...
>Thanks,
Rob
>"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message
>>news:11**********************@w5g2000hsg.googleg roups.com...
On May 14, 7:32 am, "Rob" <r...@yahoo.comwrote:
In VS2003 you had the option to select "Sub Main" as the Startup
Object
>It appears this option is not present in VS2005...
>Is this the case ?
>Thanks !
You must turn off the application framework first - then Sub Main
will
show up in the startup object drop down. You'll probably want to add
"Application.EnableVisualStyles()" and maybe even
"Application.SetCompatibleTextRenderingDefault(Fal se)" to your Sub
Main to add back the features removed by unchecking the application
framework.
Thanks,
Seth Rowe
>Example... I place some code here to ensure that only 1 instance of
the
program is running...
If thats all your sub main does, just scrap it and check the "Make a
single instance application" on the application framework options box.
Thanks,
Seth Rowe

For your project or any project?

Thanks,

Seth Rowe

May 14 '07 #7
On May 14, 9:46 am, "Rob" <r...@yahoo.comwrote:
For any project that would be of the "Windows Application" type ?

Just want to know if there are some good cases for doing this...

Thanks,
Rob

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@q75g2000hsh.googlegr oups.com...
On May 14, 9:18 am, "Rob" <r...@yahoo.comwrote:
Do you see any case for not starting with a form ?
"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message
>news:11**********************@p77g2000hsh.googleg roups.com...
On May 14, 8:32 am, "Rob" <r...@yahoo.comwrote:
Instead of doing that... where would be a better palce to put some
startup
code that applies to the whole program ?
Example... I place some code here to ensure that only 1 instance of
the
program is running...
Thanks,
Rob
"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message
>news:11**********************@w5g2000hsg.googlegr oups.com...
On May 14, 7:32 am, "Rob" <r...@yahoo.comwrote:
In VS2003 you had the option to select "Sub Main" as the Startup
Object
It appears this option is not present in VS2005...
Is this the case ?
Thanks !
You must turn off the application framework first - then Sub Main
will
show up in the startup object drop down. You'll probably want to add
"Application.EnableVisualStyles()" and maybe even
"Application.SetCompatibleTextRenderingDefault(Fal se)" to your Sub
Main to add back the features removed by unchecking the application
framework.
Thanks,
Seth Rowe
Example... I place some code here to ensure that only 1 instance of
the
program is running...
If thats all your sub main does, just scrap it and check the "Make a
single instance application" on the application framework options box.
Thanks,
Seth Rowe
For your project or any project?
Thanks,
Seth Rowe
For example I have an application that shows a splash screen, updates
any dll files, registers a user with a database, grabs the appropriate
user settings, loads the main form into memory, hides the splash, and
finally shows the main form.

Thanks,

Seth Rowe

May 14 '07 #8
Rob
Thanks for all your help in this newsgroup !
Rob


"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11*********************@e51g2000hsg.googlegro ups.com...
On May 14, 9:46 am, "Rob" <r...@yahoo.comwrote:
>For any project that would be of the "Windows Application" type ?

Just want to know if there are some good cases for doing this...

Thanks,
Rob

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@q75g2000hsh.googleg roups.com...
On May 14, 9:18 am, "Rob" <r...@yahoo.comwrote:
Do you see any case for not starting with a form ?
>"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message
>>news:11**********************@p77g2000hsh.google groups.com...
On May 14, 8:32 am, "Rob" <r...@yahoo.comwrote:
Instead of doing that... where would be a better palce to put some
startup
code that applies to the whole program ?
>Example... I place some code here to ensure that only 1 instance of
the
program is running...
>Thanks,
Rob
>"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message
>>news:11**********************@w5g2000hsg.googleg roups.com...
On May 14, 7:32 am, "Rob" <r...@yahoo.comwrote:
In VS2003 you had the option to select "Sub Main" as the
Startup
Object
>It appears this option is not present in VS2005...
>Is this the case ?
>Thanks !
You must turn off the application framework first - then Sub Main
will
show up in the startup object drop down. You'll probably want to
add
"Application.EnableVisualStyles()" and maybe even
"Application.SetCompatibleTextRenderingDefault(Fal se)" to your
Sub
Main to add back the features removed by unchecking the
application
framework.
Thanks,
Seth Rowe
>Example... I place some code here to ensure that only 1 instance of
the
program is running...
If thats all your sub main does, just scrap it and check the "Make a
single instance application" on the application framework options
box.
Thanks,
Seth Rowe
For your project or any project?
Thanks,
Seth Rowe

For example I have an application that shows a splash screen, updates
any dll files, registers a user with a database, grabs the appropriate
user settings, loads the main form into memory, hides the splash, and
finally shows the main form.

Thanks,

Seth Rowe

May 14 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Rob | last post: by
3 posts views Thread by pdtay84 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.