.NET newbie

miwaypro

Freshman
Joined
Oct 18, 2003
Messages
36
Location
Malaysia
VB:
--------------------------------------------------------------------------------
Module modFirst
Sub main()
Console.WriteLine("Welcome to .NET")
End Sub
End Module
--------------------------------------------------------------------------------



Error message
Quote:
--------------------------------------------------------------------------------

'Sub Main' was not found in 'ConsoleApplication2.Module1'.

--------------------------------------------------------------------------------

Can someone tell me what's wrong with my code?
 
It's because you renamed your module. If you are in the IDE, double click on the error in the Task Pane and select the name of your module (modFirst) from there.
 
y my output is just display for 1 second only and then disappear?
what should i do to make the screen appear on my screen and only disappear when i click at one of the key from the keyboard?
 
IIRC Application.Run doesn't work from a console application - it is designed to keep the windows message pump working if the original form is closed.
 
Last edited:
Back
Top