I want to bring a running process to front on a button click event.

On button click I am able to run application using below code:

dynamic shell = AutomationFactory.CreateObject("WScript.Shell");
shell.Run("cmd.exe", 1, true);

But is there any way by which I can bring already running cmd(any applicaion) to foreground in Silverlight 5. I am using silverlight out of browser.

有帮助吗?

解决方案

I think you are looking for Bring window to front as discussed here Bring another processes Window to foreground when it has ShowInTaskbar = false

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top