Public Shared Function Main(ByVal argv As String())Then you can check the length of the argv variable to see if any values were passed:
If argv.Length > 0 Then 'call your function End If>I have the request to define the icon on the desktop, which is an EXE, to accept a parameter. Based on the parameter, if it is passed, I need to execute some function in my form code.