Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
1. I have written a code in VC as well as in C# for screen capture but it is not able to capture WPF window in screen shot?

2. If I press print screen button on keyboard then WPF window is captured, can be seen in bitmap on windows clipboard.

But application written in VC or C# is unable to capture WPF window in screen shot why??????

Any solution to this ???? :(
Posted
Updated 5-Jan-11 1:06am
v3
Comments
Sergey Alexandrovich Kryukov 31-Dec-10 0:46am    
????
LloydA111 31-Dec-10 18:36pm    
Probably one of the most useless comments I've ever seen in QA.

1 solution

Take a look at this - it's probably why you don't get the WPF output
Desktop Window Manager[^]

Here is one way to do it:
http://spazzarama.wordpress.com/2009/02/12/screen-capture-with-vista-dwm/[^]


Regards
Espen Harlinn
 
Share this answer
 
Comments
prasad@codeproj 5-Jan-11 7:13am    
Thank you very much Espen, I got the answer now. I have not yet able to use the code I got with the second link given in answer. I built it but dont know exactly how to use it. But anyways thank you very much once again for helping.

With Regards,
Prasad.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900