I have an application that one of the functions it does is act as a central file console to where commonly accessed files can be tracked and launched from.
The problem I am having is when the user double clicks the file name or opens it by the open button and does their work inside the worksheet and tries to close the excel application from excel it throws a messagebox the it has stopped working.
Here is the code that launches it:
private void _OpenResource(string path)
{
ProcessStartInfo psi = new ProcessStartInfo(path);
psi.UseShellExecute = true;
psi.WindowStyle = ProcessWindowStyle.Maximized;
Process proc = new Process {StartInfo = psi};
proc.Start();
}
The main intent here is that we're wanting to use the current registered app path for whatever type file is passed into it. The tag has excel listed but it is happening on word, firefox and many others.
Is there a way to launch a process a disconnected from my launching app, sometimes the launching app will be closed down before the launched app is closed down.