473,394 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 1117
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: deko | last post by:
I'm trying to set startup properties with code after I make an MDB into an MDE. I have this code in the startup form's Form_Open event: If IsItMde Then For Each var In Array("Perform Name...
0
by: Gerrit Beuze | last post by:
Hi all, ModelMaker Tools is proud to announce the release of +++++ ModelMaker Code Explorer 1.10 +++++ for Visual Studio 2003 and 2005 Check...
1
by: Philip Leduc | last post by:
Hi there, I am a MS Access VBA programmer trying to get my feet wet using VB.net / SQL server. I have SLQ 2000/visual studio 2003 loaded and did get a SQL2005/visual studio 2005 software...
0
by: Gerrit Beuze | last post by:
Hi all, ModelMaker Tools is proud to announce the release of +++++ ModelMaker Code Explorer 1.15 +++++ for Visual Studio 2003 and 2005 Check...
1
by: sunil sharma | last post by:
Hi all, I want urgent feedback on my request. I have to clear the AllowSpecialkey from the startup properties based on the workgroup user security so that the user may not see the database window...
1
by: TommyTheBurgerBoy | last post by:
Hi, My SQL Server 2005 won't start - can anyone provide some help? This seems to be the most significant error: - TDSSNIClient initialization failed with error 0x5, status code 0x51. There...
0
by: Sergey M | last post by:
Hi all, I'm looking for volunteers to help beta test the latest DPack v2.6.0.1 for Visual Studio 2003/2005. Any help will be appreciated. Thanks. -- Sergey M http://www.usysware.com/dpack/ -...
13
by: Rob | last post by:
Can you store "public" variables that may be accessed from anywhere and still have a Form (not SubMain) as the designated startup object ? For example.... let's say I want all the form's Text...
3
by: pdtay84 | last post by:
Having some trouble with an unfinished database. I'm a moderate user, not a beginner, but I'm training myself more advanced options. I have an unfinished database that I set the startup...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.