Thank you so much for awnsering this whithout turning me
into flame bait
The truth is, i learned most of this on my own, and have
recently started a self study VB.NET, and actually just
never, ever did something with sub main... I tested it,
and it works like i thought, so i'm verry happy one of
the things i wanted now finally works
Now all i have to do is see how i could add my program to
the rightclick event of my mouse when the file extention
is .sfv, or that my program get's opened when i open
a .sfv file, and that the full path get's passed along to
the main executable.
So: THANK YOU!

>-----Original Message-----
>In article <006d01c3cf06$d4ac4940$(E-Mail Removed)>, CMG
wrote:
>> I get NO Accessable Main Method with an apropriate
>> signature was found...
>
>If you put this in a form... It should be:
>
>Public Shared Sub Main(ByVal Args() As String)
>End Sub
>
>Alternatively, it can be a function if you want to
return an exit code
>to the OS:
>
>Public Shared Function Main(ByVal Args() As String) As
Integer
> ....
> Return 0
>End Function
>
>Or, you can do this using the System.Environment class,
and skip the
>main if you like:
>
>Dim Args() As String =
System.Environment.GetCommandLineArgs()
>
>For Each Arg As String In Args
> MessageBox.Show(Arg)
>Next
>
>Or, you can get it as one unparsed string:
>
>MessageBox.Show(System.Environment.CommandLine)
>
>HTH
>--
>Tom Shelton
>MVP [Visual Basic]
>.
>