wow, that's an even better way.... like the old C programs.
Didn't know I could do that.
Shane
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:OIose1DjEHA.396@TK2MSFTNGP12.phx.gbl...[color=blue]
> * "Ghislain Tanguay" <ghislaintanguay3DELETETHISPART@hotmail.com>[/color]
scripsit:[color=blue][color=green]
> > I have a compiled vb.net app and I want to give the user a choice to[/color][/color]
launch[color=blue][color=green]
> > it from the start line command and pass it a parameter or not. How can[/color][/color]
I do[color=blue][color=green]
> > that in my code? Is it possible?[/color]
>
> \\\
> Public Module Program
> Public Sub Main(ByVal Args() As String)
> ...
> End Sub
> End Module
> ///
>
> Select 'Sub Main' as startup object in the project properties.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>[/color]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004