How do you handle the Arguments

Mar 9, 2016 at 7:00 PM
Edited Mar 9, 2016 at 7:01 PM

It handles the single instance at any given point of time. But all WPF application can accept the Args[] as input while start the application.

For exaple,. when the user start the second instance with some parameter (myapp.exe Mode="1"), i want to pass this argument to first instance which is already running, before quit this instance. IS there any way to achieve this?