VB6 Standard Exe to VB.Net Windows Application - Command$ lost
In VB6, when you wanted to pass parameters to a standard exe, you passed them on the command line as additional arguments. Then, in the VB standard exe project, in the Sub Main or startup form, you received these parameters using the Command or Command$ construct. I've discovered in VB.Net that this isn't available anymore. MSDN has NOTHING about this (that I can find, and believe me I've LOOKED!). The Upgrade Wizard is no help either. If you convert a Standard Exe project from VB6 to VB.Net, the Upgrade Wizard just changes Command to VB.Command. That's not too helpful when you're trying to convert all code to a .Net framework, and you want to remove all interop code and dependencies on VB6 code.
Does anyone know how to pass and receive parameters to/from a VB.Net Windows application? Any help would be greatly appreciated! :confused:
[889 byte] By [
TPirkle] at [2007-11-18 10:57:54]

# 3 Re: VB6 Standard Exe to VB.Net Windows Application - Command$ lost
Another method:
Public Sub Main(args() as string)
Msgbox("Arg 1 is " & args(0))
MsgBox("Arg 2 is " & args(1))
... etc ...
End Sub
DSJ at 2007-11-10 3:25:31 >
