473,662 Members | 2,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1123
On May 14, 7:32 am, "Rob" <r...@yahoo.com wrote:
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.En ableVisualStyle s()" and maybe even
"Application.Se tCompatibleText RenderingDefaul t(False)" 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_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ w5g2000hsg.goog legroups.com...
On May 14, 7:32 am, "Rob" <r...@yahoo.com wrote:
>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.En ableVisualStyle s()" and maybe even
"Application.Se tCompatibleText RenderingDefaul t(False)" 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.com wrote:
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_newsgroup s" <rowe_em...@yah oo.comwrote in message

news:11******** **************@ w5g2000hsg.goog legroups.com...
On May 14, 7:32 am, "Rob" <r...@yahoo.com wrote:
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.En ableVisualStyle s()" and maybe even
"Application.Se tCompatibleText RenderingDefaul t(False)" 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_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ p77g2000hsh.goo glegroups.com.. .
On May 14, 8:32 am, "Rob" <r...@yahoo.com wrote:
>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_newsgrou ps" <rowe_em...@yah oo.comwrote in message

news:11******* *************** @w5g2000hsg.goo glegroups.com.. .
On May 14, 7:32 am, "Rob" <r...@yahoo.com wrote:
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.En ableVisualStyle s()" and maybe even
"Application.Se tCompatibleText RenderingDefaul t(False)" 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.com wrote:
Do you see any case for not starting with a form ?

"rowe_newsgroup s" <rowe_em...@yah oo.comwrote in message

news:11******** **************@ p77g2000hsh.goo glegroups.com.. .
On May 14, 8:32 am, "Rob" <r...@yahoo.com wrote:
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_newsgroup s" <rowe_em...@yah oo.comwrote in message
>news:11******* *************** @w5g2000hsg.goo glegroups.com.. .
On May 14, 7:32 am, "Rob" <r...@yahoo.com wrote:
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.En ableVisualStyle s()" and maybe even
"Application.Se tCompatibleText RenderingDefaul t(False)" 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_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ q75g2000hsh.goo glegroups.com.. .
On May 14, 9:18 am, "Rob" <r...@yahoo.com wrote:
>Do you see any case for not starting with a form ?

"rowe_newsgrou ps" <rowe_em...@yah oo.comwrote in message

news:11******* *************** @p77g2000hsh.go oglegroups.com. ..
On May 14, 8:32 am, "Rob" <r...@yahoo.com wrote:
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_newsgrou ps" <rowe_em...@yah oo.comwrote in message
>>news:11****** *************** *@w5g2000hsg.go oglegroups.com. ..
On May 14, 7:32 am, "Rob" <r...@yahoo.com wrote:
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.En ableVisualStyle s()" and maybe even
"Application.Se tCompatibleText RenderingDefaul t(False)" 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.com wrote:
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_newsgroup s" <rowe_em...@yah oo.comwrote in message

news:11******** **************@ q75g2000hsh.goo glegroups.com.. .
On May 14, 9:18 am, "Rob" <r...@yahoo.com wrote:
Do you see any case for not starting with a form ?
"rowe_newsgroup s" <rowe_em...@yah oo.comwrote in message
>news:11******* *************** @p77g2000hsh.go oglegroups.com. ..
On May 14, 8:32 am, "Rob" <r...@yahoo.com wrote:
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_newsgroup s" <rowe_em...@yah oo.comwrote in message
>news:11******* *************** @w5g2000hsg.goo glegroups.com.. .
On May 14, 7:32 am, "Rob" <r...@yahoo.com wrote:
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.En ableVisualStyle s()" and maybe even
"Application.Se tCompatibleText RenderingDefaul t(False)" 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_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** *************@e 51g2000hsg.goog legroups.com...
On May 14, 9:46 am, "Rob" <r...@yahoo.com wrote:
>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_newsgrou ps" <rowe_em...@yah oo.comwrote in message

news:11******* *************** @q75g2000hsh.go oglegroups.com. ..
On May 14, 9:18 am, "Rob" <r...@yahoo.com wrote:
Do you see any case for not starting with a form ?
>"rowe_newsgrou ps" <rowe_em...@yah oo.comwrote in message
>>news:11****** *************** *@p77g2000hsh.g ooglegroups.com ...
On May 14, 8:32 am, "Rob" <r...@yahoo.com wrote:
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_newsgrou ps" <rowe_em...@yah oo.comwrote in message
>>news:11****** *************** *@w5g2000hsg.go oglegroups.com. ..
On May 14, 7:32 am, "Rob" <r...@yahoo.com wrote:
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.En ableVisualStyle s()" and maybe even
"Application.Se tCompatibleText RenderingDefaul t(False)" 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
4766
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 AutoCorrect", _ "Track Name AutoCorrect Info", "StartUpShowDBWindow", _ "StartUpShowStatusBar", "AllowFullMenus", "AllowBuiltInToolbars", _
0
1144
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 http://www.modelmakertools.com/code-explorer-vs/index.html This new major release contains many exciting new features such as: New Wizards and Refactorings:
1
2432
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 through the MS launch. I am now wondering how to setup my laptop so I can use theh two sets together (not at the same time of course). I have also been told there might be issues of interaction between framework
0
1157
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 http://www.modelmakertools.com/code-explorer-vs/index.html This new major release contains many exciting new features such as:
1
1918
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 and VBE. My Application is multiuser Application and it runs thru Terminal Server services. Application sets the AllowSpecialkey properly but it is not working for the first time. For example, say application will clear the AllowSpecialKey for users...
1
6113
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 was some info here, but the reg key described looks okay: - http://blogs.msdn.com/sql_protocols/ I am running SQL Server 2005 64-bit Standard Edition. The server in
0
998
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/ - DPack - free VS.NET add-ons http://www.usysware.com/blog/
13
1258
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 property equal to "Program Name and Version" In a public class I tried.... Public Class SomeVariables
3
1684
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 properties to disable all the menus (oops.) How can I get back in to edit the database. I read somewhere pressing F11 will bring up the menu but it does nothing.
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8343
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8762
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.