Cannot find Sub Main() in console application.

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 38
Reputation: preethi_ga is an unknown quantity at this point 
Solved Threads: 0
preethi_ga preethi_ga is offline Offline
Light Poster

Cannot find Sub Main() in console application.

 
0
  #1
Jun 11th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 18
Reputation: seoprofessional is an unknown quantity at this point 
Solved Threads: 0
seoprofessional seoprofessional is offline Offline
Newbie Poster

Re: Cannot find Sub Main() in console application.

 
0
  #2
Jun 12th, 2008
after this
[ Console.Writeline("Hello World") ]

add this
[Console.Readline ()]
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 169
Reputation: tuse is an unknown quantity at this point 
Solved Threads: 14
tuse's Avatar
tuse tuse is offline Offline
Junior Poster

Re: Cannot find Sub Main() in console application.

 
0
  #3
Jun 15th, 2008
Agree. Its something like the getch used in Turbo C

The output is shown but the window closes before you can see it
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC