J
John
Howdy,
I havn't been using VB.NET just a whole lot, and am finally making the
transistion from VB6 to dotnet. (Yeah it is pretty sad, I know.)
Anyhow, I have created several apps in vb6 that I allowed the user to drag
and drop a file onto the executable. The executable would grab the path and
filename of the dropped file and store it in a variable. I could then use
the variable to access and manipulate the file.
I also used the same thing to use execution parameters for the executables.
I simply declared a variable, then in the form load routine I set the
variable = to the command
something along the lines of this
Dim DXF_File
Private Sub Form_Load()
DXFFile = Command
If the user dropped the file "C:\howdy.txt" onto the executable then the
value of the variable DXFFile would be "C:\howdy.txt"
How the hell do I do that in VB.Net? I have looked in the documentation and
couldn't figure out what the heck to look for.
If you could offer some direction I would appreciate it.
Thanks,
John
I havn't been using VB.NET just a whole lot, and am finally making the
transistion from VB6 to dotnet. (Yeah it is pretty sad, I know.)
Anyhow, I have created several apps in vb6 that I allowed the user to drag
and drop a file onto the executable. The executable would grab the path and
filename of the dropped file and store it in a variable. I could then use
the variable to access and manipulate the file.
I also used the same thing to use execution parameters for the executables.
I simply declared a variable, then in the form load routine I set the
variable = to the command
something along the lines of this
Dim DXF_File
Private Sub Form_Load()
DXFFile = Command
If the user dropped the file "C:\howdy.txt" onto the executable then the
value of the variable DXFFile would be "C:\howdy.txt"
How the hell do I do that in VB.Net? I have looked in the documentation and
couldn't figure out what the heck to look for.
If you could offer some direction I would appreciate it.
Thanks,
John