I wrote a little WPF app that when 'closed' minimizes to the system tray (customer requirement). Double clicking pops it back up, or right click gives a context menu to exit.
But if the app is minimized, and the users navigate to Start->All Programs->The Application it starts a new instance.
What (in C#) do I need to do to get the app to maximize the running instance if the user does this rather than fire up a new instance?
Thanks!
This answer from Jon Skeet discusses using a mutex to do it
Matthew Brindley gives this example in the same question for his answer
To maximize the other application you'll need to send it the message to maximize. See this article on message sending