Process and picture

  • Thread starter Thread starter Assulin
  • Start date Start date
A

Assulin

Bob Powell , thanks for your anwer
1) should I import any class to be able to use the object
Process?
2) is there any way to get the picture of the process?
lets say the process is winword and I want to something
like printscreen on it...
3) is question 2 can be possible while the process is
minimized?

Thank you.
 
Process is in System.Diagnostics.

If you get the window handle of the process and you're running on XP you may
be able to use PrintWindow to capture the image. I don't think this works on
a minimized window but I haven't tried it.

You can use Process.CloseMainWindow to close the process if it really does
have a window.

--
Bob Powell [MVP]
Visual C#, System.Drawing

All you ever wanted to know about ListView custom drawing is in Well Formed.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com
 
I couldn't find System.Diagnostic
how do I add it
I tried to do "Add reference" in visual studio and it's not there..
any idea?
 
Assulin said:
I couldn't find System.Diagnostics
how do I add it?
I tried to do "Add reference" in visual studio and it's not there...
any idea?

You don't need to add a reference, just use the System.Diagnostics
namespace as it is in System.dll (which should be already referenced).

--
Cheers,
David Clegg
dclegg_at_ebetonline_dot_com
http://cc.borland.com/codecentral/ccweb.exe/author?authorid=72299

Quality Central. The best way to bug Borland about bugs.
http://qc.borland.com

"With $10,000, we can be millionaires!" - Homer Simpson
 
Back
Top