943,701 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1650
  • VB.NET RSS
Jun 11th, 2008
0

Cannot find Sub Main() in console application.

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
preethi_ga is offline Offline
38 posts
since Jun 2008
Jun 12th, 2008
0

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

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

add this
[Console.Readline ()]
Reputation Points: 10
Solved Threads: 0
Newbie Poster
seoprofessional is offline Offline
18 posts
since May 2008
Jun 15th, 2008
0

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

Agree. Its something like the getch used in Turbo C

The output is shown but the window closes before you can see it
Reputation Points: 32
Solved Threads: 14
Junior Poster
tuse is offline Offline
173 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Need help with SMS program
Next Thread in VB.NET Forum Timeline: How to get the contents of the column to an arraylist





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC