Ok, I most be totally ignorant to as what is going on with this. Here is what I have done.
I placed in my installed to refer file the file types to my program. I then installed. Once installed the icons of that file type are the ones I chose and when I double click them my program starts. However; my program does not recognize me trying to start a particular file (the one I chose) it starts normally as it always does.
Now this makes since b/c there is no code in my program to look for anything of that nature. So I have placed the code you provided in my program right in the startup process. I didn't change it b/c I wanted to get the msgbox's just to test and debug. I never get a msgbox. This could be b/c the commandline never has more than 1 argument. Anyways, what I think is happening is that even though I am double clicking and sending the information to the program to start it, I am not sending the information to the program which file chose to start it. Or is this automatic?
Also, I did build and deploy the application b/c I am assuming you can't test this feauture in the IDE and have to test it as installed.
I know this must be a pain but if you or anyone can walk me through this I would be greatly appreciated. I feel like an idiot for not being able to figure this out and all b/c this is a popular feature among programs. However; with that said, I am ignorant as to what i'm doing with this procedure anyways.