I was playing a game recently and saw that they could use args in the shortcut, and I decided to try to impliment this into my application...so far, I got: (runs this sub on load)
just to see what it returns, but the application crashes. I also tried path.tostring(), but that didn't work. When I did:
but that returned the value "SString.Array[]"...what am I doing wrong?
VB.NET:
Sub startup_args()
If Environment.GetCommandLineArgs.Contains("+game") Then
Dim path As Array = Environment.GetCommandLineArgs
MsgBox(path)
End If
End Sub
just to see what it returns, but the application crashes. I also tried path.tostring(), but that didn't work. When I did:
VB.NET:
If Evnironment.GetCommandLineArgs.Contains("+game") Then
Dim path as string = Environment.GetCommandLineArgs.tostring
MsgBox(path)
End If
End Sub
but that returned the value "SString.Array[]"...what am I doing wrong?