954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cannot find Sub Main() in console application.

hi,
Actually i'am new to VB.NET. i started learning. but when i run a small application in console. i cant see the result. the screen just blinks and vanishes. my code is

[ imports System ]
[ imports System.Collections ]
[ Namespace Myapp ]
[ Module Mymod ]
[ Sub Main () ]
[ Console.Writeline("Hello World") ]
[ End Sub ]
[ End Module ]
[ End Namspace ]

these is actually a simple application. the thing is i cannot see resulting screen. it just blinks and vanishes. can anyone help me spot out the problem?

preethi_ga
Light Poster
38 posts since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

after this
[ Console.Writeline("Hello World") ]

add this
[Console.Readline ()]

seoprofessional
Newbie Poster
18 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Agree. Its something like the getch used in Turbo C

The output is shown but the window closes before you can see it

tuse
Junior Poster
173 posts since Jul 2007
Reputation Points: 32
Solved Threads: 14
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You