Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("1")
MainForm.Show
If Args.Length > 0 Then
Try
If File.Exists(Args(0), "") Then 'don't assume that it is a valid path
ListView1.Items.AddAll(File.ReadList(Args(0), ""))
End If
Catch
Log(LastException)
End Try
End If
End Sub