If you are talking about console application, then in Main() method args[0] will hold full path to selected file.
If you are talking about WinForms application, you can use:
string[] args = Environment.GetCommandLineArgs();
and again, args[0] should have full path to selected file.