Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
VB 2005: The "Missing" Sub Main Problem
travislaborde
follow
1
6-20-2007 7:35 AM
462 views
tags:
programming
,
vb.net
,
2005
,
visual studio
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Related Clips
Digital Art Animations using "Processing"
Future 'Top 10' Hot Careers in 2012
Sordid Lives
How to Understand the Financial Crisis in ...
Sql Server and .NET Min and Max Date Ranges
Fav Programmer Cartoons
Custom Toyota MR2 carputer
More clips from
travislaborde
Very Creepy Old Ads
Rubik's Cube Solver
DotNetNuke 5.0: Now with jQuery
Today's Top Clips
Earth From Above - Stunning!
Stories They Can't Tell You
Saudi Cleric Favours One-Eye Veil
Cannabis less harmful than drinking, smoking: report
The Man Who Stuck His Head Inside a Particle Accelerator
Scientists create solar cells with a twist.
AP: Palin attack "exaggerated" or "outright false"
Magical Thinking
Artist Builds Temple of Science
S&M Porn Illegal-Real Life Torture-OK!
visit the
Top Clips page
View the Top Clips from
June 20, 2007
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/fc4e14a3-f904-4182-8900-506adfd3a950/FCFB798B-206D-4A18-8905-47E97D81A868/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://vbfeeds.com/post.aspx?id=3525" href="http://vbfeeds.com/post.aspx?id=3525" style="font-size: 11px;">vbfeeds.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://vbfeeds.com/post.aspx?id=3525"><A href="http://blogs.vbcity.com/xtab/archive/2007/06/19/8453.aspx" id="ctl00_CH_FV_ItemDetailsLink">VB 2005: The "Missing" Sub Main Problem</A> </blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://vbfeeds.com/post.aspx?id=3525"><P>As I've said on many occasions in the past, it's those sometimes tiny little Gotchas that will cause you the greatest amount of aggravation. Here's one that I've been meaning to blog for a while now. It's a question/problem that comes up fairly often and it usually goes something like this:- </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://vbfeeds.com/post.aspx?id=3525"><I>"In a Windows Forms project, I add a module that has a Sub Main procedure in it. I want to use this Sub Main as the StartUp Object in the application. But when I look in the project properties, I don't see "Sub Main" as a choice. " </I></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://vbfeeds.com/post.aspx?id=3525"><div align="center"><img src="http://content9.clipmarks.com/blog_cache/vbfeeds.com/img/B74592A0-AF22-4183-9F67-88F9739F8E38" alt="No Sub Main Listed" /></div></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://vbfeeds.com/post.aspx?id=3525"><I>"It used to be here in earlier editions - where has it gone to and how can I access it? "</I></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://vbfeeds.com/post.aspx?id=3525">Open up the Project Properties page. </blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://vbfeeds.com/post.aspx?id=3525"><div align="center"><img src="http://content6.clipmarks.com/blog_cache/vbfeeds.com/img/3D30C5D5-507F-4BA6-BCBB-B50412461020" alt="Enable Application Framework" /></div></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://vbfeeds.com/post.aspx?id=3525">Uncheck this option (i.e. disable it)</blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://vbfeeds.com/post.aspx?id=3525"><P>Now if you view the "Startup Form" combo you'll see that it has changed so that it reads "Startup Object". <BR />Click on the combo and all the forms plus the module and the Sub Main inside that module will all be available as Startup objects.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://vbfeeds.com/post.aspx?id=3525"><div align="center"><img src="http://content7.clipmarks.com/blog_cache/vbfeeds.com/img/D6B53D14-89B2-4DA6-8757-4192DD44BC1A" alt="Sub Main Now Listed" /></div></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/FCFB798B-206D-4A18-8905-47E97D81A868/blog/" title="blog or email this clip"><img src="http://content8.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Blog
Copyright
Privacy
EULA
OK