Private Sub App_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup Framework.App.oStartupEventArgs = e Framework.App.Initialize() End Sub Public Class App Public Shared oStartupEventArgs As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs ' Initialize Public Shared Function Initialize() As Boolean ' Command line parameters If Framework.App.oStartupEventArgs.CommandLine.Item(0).Length > 0 Then If UCase(Framework.App.oStartupEventArgs.CommandLine.Item(0)) = "/AUTO" Then End If End If End Function End ClassBut, if I don't pass a parameter, the application crashes on the detection of the length of the command line parameters. I also tried to verify the presence of that object by the use of IsNothing. But, all access to the object makes the application to crash if I don't pass a parameter. What is the proper way to detect if a parameter has been passed now?