Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

programing programer program
  • *Experts*
Posted
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.
Posted

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?

programing programer program

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...