I have a VB.NET form and have coded it to grab a screenshot in the following way:
1. Create Device for Currunt Form which has Focus
2. Create Surface from CreateOffscreenPlainSurface
3. Get Device Front Buffer
4. Save the surface to file
Any ideas on how i can get it to work without having to have focus off the current form and take the screenshot regardless of what application i am in would be appreciated!!!
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe