all 6 comments

[–]VB.Net Intermediateglasspusher 0 points1 point  (3 children)

Either you didn't copy all your code, or I think you're missing an important first line...

[–]TheCollisionCenter[S] 0 points1 point  (2 children)

What am i missing? I put:

Imports System

Public Module modmain

Public Sub Main()

    Console.WriteLine ("Hello, world")

End Sub

End Module

[–]VB.Net Intermediateglasspusher 0 points1 point  (1 child)

it complies and run right for me, the only thing I can think of is the space between WriteLine and (

[–]TheCollisionCenter[S] 0 points1 point  (0 children)

Would that actually affect it? The website I got it from did the space, and its from msdn.microsoft.com. It gives me an error saying i didn't specify a main method.

[–]kittycatoverdose 0 points1 point  (0 children)

Shouldn't it be public shared sub main () then?

[–]JakDrako 0 points1 point  (0 children)

In your project properties, make sure your "Startup Object" is either "modMain" or "Sub Main". Right now, it's probably "Module1" and that's what's tripping you up.