.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Take a screenshot?

Posted By:      Posted Date: September 20, 2010    Points: 0   Category :WPF


How can I take a screenshot in my VB.NET WPF application?


Basically on a buttonclick event it will just be:



'However I take screenshot



I thought perhaps just send a keypress of the print screen key, but how do I do that?



View Complete Post

More Related Resource Links

Capture screenshot of panel

Hi, I am working in Windows application. I wanna take screenshot of a Panel and its contents. The code which I use now is taking the screenshot but the contents which are beyond the scrollbars are not capture in the image. Please help me urgent how to take screenshot of entire panel without scroll bar and the entire content beyond the scroll bars

screenshot of a specific panel in asp.net c#

I have to make a web page to make greetings cards.Here I have to capture the div or panel into an image. I have these code.But the "PointToScreen" method does not worked in web application.It only worked at windows application.    Bitmap bmpScreenshot = new Bitmap(Convert.ToInt32(Panel1.Width), Convert.ToInt32(Panel1.Height), PixelFormat.Format32bppArgb);         // Create a graphics object from the bitmap         Graphics gfxScreenshot = Graphics.FromImage(bmpScreenshot);         //Point clientLocation = this.Panel1.PointToScreen(clientLocation);         // Take a screen shot of just the button2 control         gfxScreenshot.CopyFromScreen(this.PointToScreen(Panel1.Location), new Point(0, 0), this.Panel1.Height, CopyPixelOperation.SourceCopy);         // Size size = new Size(         // Save the screenshot         bmpScreenshot.Save("D:\\Panel1.jpg", ImageFormat.Jpeg);   I got the code from "http://social.msdn.microsoft.com/forums/en-US/Vsexpressvb/thread/6788eb21-cab4-424c-88c9-f51eff902ea7/" here. PLEASE help me its very very Urjent.

aspx Screenshot


I'm coding in VB. I started wanting to convert from aspx to PDF. However, nothing is working with my situation. I decided to try to take a screenshot and save it as a jpg.  I don't have direct access to install anything on the server, or on my machine for that matter. They have far too many restrictions. Anyways, I would just like to programmatically take a screenshot of the page and save it as a jpg to where I specify.  I've found code examples but can't get them to function correctly. Any help is appreciated.

How to take a screenshot of a Full Size window in C#


Hi I am trying to create an application in C#.net that captures the screenshot of the current active including the area that has to be scrolled using scroll bars.I found the following code to take screenshot. TO be very clear I want the code to take screenshot of the active window including the area that is not displayed and is only revealed by using scroll bars. Any help is greatly appreciated.Thank you


public class ScreenShot
    /// <summary>
    /// Captures the screenshot of the entire desktop
    /// </summary>
    /// <returns>Image object containing the screenshot of the desktop</returns>
    private Image CaptureDesktop()
      return CaptureWindow(User32.GetDesktop
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend