Different formats of Main method in VB.NET !


Hi,

I want to know different formats of

Main

method in VB.NET.

Thanks,
Kishore
kishore_peddiAsked:
Who is Participating?
 
mastooCommented:
From help:

There are four varieties of Main:

Sub Main()
Sub Main(ByVal CmdArgs() As String)
Function Main() As Integer
Function Main(ByVal CmdArgs() As String) As Integer
0
 
kishore_peddiAuthor Commented:


Can you provide link for this ? (For help) :

Thanks,
Kishore

0
 
mastooCommented:
If using the installed help: look at "Main procedure" in the index, and then pick the topic "Structure of a Visual Basic Program"
0
 
Bob LearnedCommented:
In a class, you can do this also:

Public Shared Sub Main

Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.