I'm sure I am overlooking something, or not searching for the right question-
I have an application that saves a project file (it's in XML) but the file extension is mpxml (my project xml) - the real file type is slightly more descriptive, but lets go with mpxml to keep it easy.
I think I know how to set a program to be a default application for a file type, but what I don't know, and can't find, is how that filename is passed to the application on launch.
IE, I double click a .mpxml file and it opens my application, and my application opens that file...
I'm picturing something like:
if (Application.Arguments.Filename != null)
{
Application.Run(new frmMain(Application.Arguments.Filename));
}
where frmMain would have an overloaded method to send the file path to a load project method once loaded.
Edit: This was marked as a duplicate, however, I had previously viewed the linked answer, and did not feel like it was a direct answer to my question- My answer below directly answers how to handle an application opening via a associated file.