VB.NET tutorial Lesson 2 - Question about Module


I typed in the following code from the tutorial on VB.NET and the code only ran when I replaced MyHellowWorldModule with module1. Can you provide insight into this question?

Module MyHelloWorldModule
Sub Main()
Console.Write("Plz, write your good name: ") ' line 1
Dim name As String = Console.ReadLine() ' line 2
Console.WriteLine("Hello {0}, Good Luck in VB.Net", name) '
End Sub
End Module
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!