Quote Originally Posted by .paul.
what type of file is it?

what would you do with the file if you opened it from within the program, instead of the program being started because you've chose to run the file?

it is possible to use the main sub with args in vb.net
I would do exactly the same when i open the file inside my program.

And it doesnt matter what file type it is. I just want to know how to do it, even when its just plain text shown in a message box and after that close the program when i open that file.

How to use this Main sub with args[] in vb.net?

Greets