find the System.Windows.Window object for a given process

J

Jay Meerdink

If my WinForms app uses System.Diagnostics.Process to fire up another
app such as Notepad, is there a System.Windows.Window object that
corresponds to that instance of Notepad?
 
O

Onur Güzel

If my WinForms app uses System.Diagnostics.Process to fire up another
app such as Notepad, is there a System.Windows.Window object that
corresponds to that instance of Notepad?

If you're referring to the Notepad's ID then you can check Process.ID,
If you need the handle of process in kernel, that is, notepad, use
Process.Handle property. Note that Process.Handle is IntPtr.

HTH,

Onur Güzel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top