Click here to Skip to main content
11,496,146 members (827 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
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
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

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

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

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 RyanDev 230
2 CHill60 163
3 Sascha Lefèvre 145
4 Sergey Alexandrovich Kryukov 124
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600

Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 5 Jan 2011
Copyright © CodeProject, 1999-2015
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