I would like a picture file to be opened with my program. I can set my program as the default, but I don't know how to get the filename of the file I want to open. Thanks!
Printable View
I would like a picture file to be opened with my program. I can set my program as the default, but I don't know how to get the filename of the file I want to open. Thanks!
Never done that, but my money would be on reading the command-line parameters
Yeah... dunno how to do that.
Found it. It's called "Command". In your Form_Load procedure, use
to get the file it's trying to open. RESOLVED!Code:MsgBox Command
Use this command:
:()+LCode:Shell "C:\Application.exe",, vbNormalFocus