VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
VB.Net Lesson 2 Build Error Posted by teetime3 on 21 Dec 2005 at 7:52 AM
I have started going through the VB.Net lessons and have encountered an error in Lesson 2. When I try to run the "MyHelloWorldApplication" I get a build error "'Sub Main' was not found in 'MyHelloWorldPllication.Module1'".

I have typed it exactly as displayed in the lesson. Any ideas?

Thanks,
TeeTime3
Report
Re: VB.Net Lesson 2 Build Error Posted by rlc on 21 Dec 2005 at 11:57 AM
Double click on the error in the task list and it will open a pop-up letting you select the 'Sub Main'.

~rlc
Report
Re: VB.Net Lesson 2 Build Error Posted by cucu on 27 Dec 2005 at 3:44 PM
You should set start up form in configuration panel by stating as Sub Main. And then place the following code inside the Module

Sub Main

your code goes here

end sub



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.