Вопрос

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