I've googled, searched CodeProject, etc, and I hope I'm overlooking something, but here is what I want to do: I want to call a Windows Form application from another Windows Form application. The program being called, may be called from different form based applications and needs to know who is calling. I've found in testing, that with this code, I can accept a parameter: Public Shared Sub Main() If Command$() = "/CR" Then strAppStartedFrom = "CR" 'Started from Check Recon Application Else strAppStartedFrom = "--" End If MsgBox(strAppStartedFrom & Command$()) frmFTP.ShowDialog() End Sub
I've published it, and from what I can find it puts the exe in this location? C:\Users\username\AppData\Local\Apps\2.0\0BTCBQ53.QL1\OMCV071R.O93\carr..tion_c302ad764aefaa28_0001.0001_bcaadc20b696e727\CarrollFlexFTP.exe /CR This path seems like it might change and not be consistent when installing it for different users. The above link works if it is executed with a /CR parameter, but I need a more stable way of doing this. In the past I've pointed shortcuts to the setup.exe file in the location we publish the application to, but if I run the app using the setup.exe /CR parameter, it doesn't work. Suggestions?
Lost in the vast sea of .NET