Sorry, Michel ... I missed where you said you had already checked for the existence of oStartupEventArgs. Checking the Count of the CommandLine would have been my next suggestion. <g> Glad you got it working. =)
~~Bonnie
>Ok, I finally found the way to do it. It seems that object is always initialized and ready for the count. So, I can use this to see if a parameter has been passed:
>
>
> ' Command line parameters
> If Framework.App.oStartupEventArgs.CommandLine.Count > 0 Then
> If UCase(Framework.App.oStartupEventArgs.CommandLine.Item(0)) = "/AUTO" Then
> MessageBox.Show("Auto")
> End If
> End If
>