Click here to Skip to main content
13,055,852 members (49,724 online)
Rate this:
Please Sign up or sign in to vote.
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 30-Dec-10 17:18pm
Updated 5-Jan-11 1:06am
SAKryukov 31-Dec-10 0:46am
Lloyd Atkinson 31-Dec-10 18:36pm
Probably one of the most useless comments I've ever seen in QA.

1 solution

Rate this: bad
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:[^]

Espen Harlinn
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,

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 5 Jan 2011
Copyright © CodeProject, 1999-2017
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