Cross-instance method invoking
-
Hi, I'm using the code from this article to detect if another instance of my program is running and raise the other instance if it is, closing down the seccond instance of my program. However, I would like to parse the command line parameters given to the seccond instance towards the first instance of my program, prefferably by invoking some kind of method on it. Is there any way of doing this?
-
Hi, I'm using the code from this article to detect if another instance of my program is running and raise the other instance if it is, closing down the seccond instance of my program. However, I would like to parse the command line parameters given to the seccond instance towards the first instance of my program, prefferably by invoking some kind of method on it. Is there any way of doing this?
Hello
sjembek wrote:
I would like to parse the command line parameters given to the seccond instance towards the first
You can always check the Process.StartInfo.Arguments of the second process.
Regards:rose: