Code Snippet: Read and Parse CommandLine Arguments in VB.NET

Dim myCommandLineArgs As System.Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Application.CommandLineArgs

For i As Integer = 0 To myCommandLineArgs.Count – 1
MessageBox.Show(myCommandLineArgs(i))
Next

Parameters are seperated by space.