We are using this code to launch a Wpf form:
string fileName = @"C:\Test\bin\Debug\WpfTest.exe";
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(fileName);
psi.Arguments = entryZfName;
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo = psi;
p.Start();
The WpfTest is an appliation which contain a WPFForm1.xaml which gets launched.
How to access the arguments in this form that were set to psi in the above code.
Are they accessible in the constructor?
Also how to debug this scenario, in other words since i am launching the wpftest.exe directly from the code i am not able to debug or access the code, is it possible to debug this. Let me know if you need more info
you can use Environment.GetCommandLineArgs to get args. To Debug you can add Debug.Launch() in the wpf form or the place you want to start debugging if you have access to the code..