HighTechTalks DotNet Forums  

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

Dotnet Framework (WinForms) microsoft.public.dotnet.framework.windowsforms


Discuss find the System.Windows.Window object for a given process in the Dotnet Framework (WinForms) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jay Meerdink
 
Posts: n/a

Default find the System.Windows.Window object for a given process - 07-07-2010 , 04:31 PM






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?

Reply With Quote
  #2  
Old   
Onur Güzel
 
Posts: n/a

Default Re: find the System.Windows.Window object for a given process - 07-17-2010 , 01:32 PM






On Jul 8, 12:31 am, Jay Meerdink <jay.meerd... (AT) gmail (DOT) com> wrote:
Quote:
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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.