|
-
October 24th, 2002, 10:11 AM
#1
How to inform explicitly with code where Main() is (the startup object)???
Hi,
Today I decided to get my hands dirty with VB.NET and find out for myself if .NET measures up to all the hype...
Briefly, I did my first "Hello World" in a console app. but when I changed the default module name "Module1" to "modHello" and I got the following build error when running the app...
'Sub Main' was not found in 'ConsoleApplication1.Module1'.
I searched hi and low and jig and poked at it until I finally instinctively double clicked on the error message which brought up a window asking me to choose the startup object... which fixed the problem....
However, I would like to know how to set the startup code (where Main() is located) before running the up and getting that ugly build error....
Thanks,
DrUnKeN MaStEr 
-
October 24th, 2002, 01:48 PM
#2
ok... finally figure it out... you need to go to menu item Project then select Properties.... the trick is that you need to ensure to have the Project name selected in the Solution Explorer and not the File (.vb).
In VB6 IDE, it didn't matter what you had selected on the Project window, you will always see Properties under the Preject menu.
Hopefully, the road to OOP is not a long one...
DrUnKeN MaStEr 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|