I found a web page that showed a version that was converted from C# to VB.Net
Ive tried this in VB.Net and it works
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim psnfo As String
Dim strbuilder As New StringBuilder
Dim arg As String
For Each arg In Environment.GetCommandLineArgs()
psnfo = strbuilder.ToString
TextBox1.Text = "Args: " & psnfo.ToString
The code returns:
It will return both args passed to it.
your code does not appear to treat the args as an array or group of items.
Hope this helps some.