Copy the function in my last post and put this in your form_load event:

For Each n In GetCommandLine
If Not IsEmpty(n) Then Loadfile n: Exit For
Next n

And if you're making an MDI app, remove the Exit for. Rename Loadfile method, for whatever your method is to load the file.

Hope you get things work now!