Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC8.0 C# WPF
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 30-Dec-10 18:18pm
Edited 5-Jan-11 2:06am
v3
Comments
Lloyd Atkinson at 31-Dec-10 18:36pm
   
Probably one of the most useless comments I've ever seen in QA.
SAKryukov at 31-Dec-10 0:46am
   
????

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
prasad@codeproj at 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)

  Print Answers RSS
0 DamithSL 265
1 CPallini 235
2 OriginalGriff 233
3 Maciej Los 195
4 George Jonsson 170
0 OriginalGriff 5,305
1 DamithSL 4,382
2 Maciej Los 3,760
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,901


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 5 Jan 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100