Login
Register
Tutorials
Forum
Career Development
Resources
Reviews
Jobs
Interview
Communities
Projects
Training
Silverlight Games
|
Bookmarks
|
New Members FAQ
|
Mentor
|
Code Converter
|
IT Companies
|
Peer Appraisal
|
Members
|
Revenue Sharing
|
Computer Jokes
|
New Posts
|
Social
|
Talk to Webmaster
Tony John
Facebook
Google+
Twitter
LinkedIn
Online Members
baskar
More...
Join our online
Google+ community
for Bloggers, Content Writers and Webmasters
Resources
»
Code Snippets
»
Winforms Controls
Capture DeskTop Screen
Posted Date:
19-May-2008
Category:
Winforms Controls
Author:
Raamkumar
Member Level:
Silver
Points
: 5
//Add thid Name Space to your Class File
using System.Drawing.Imaging;
using System.Drawing;
////Add Button Control and Chaange Button name as"btnCapture" and paste this coding
this.Hide();
Bitmap Bitmap;
Graphics Graps;
Bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
Graps = Graphics.FromImage(Bitmap);
Graps.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y,0,0,Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
Bitmap.Save(System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop )+"\\YourShot.jpeg" , ImageFormat.Jpeg);
MessageBox.Show("Your Screen Shot Save in Desktop");
this.Show();
Did you like this resource? Share it with your friends and show your love!
Tweet
Responses to "Capture DeskTop Screen"
Author:
vijetha
20 May 2008
Member Level:
Gold
Points
: 2
i did not understood what is the purpose of capturing desktop screen,what the output i will get
Feedbacks
Post Comment:
Notify me by email when others post comments to this article.
Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
No HTML formatting and links to other web sites are allowed.
This is a strictly moderated site. Absolutely no spam allowed.
Name:
Sign In
to fill automatically.
Email:
(Will not be published, but
required
to validate comment)
Type the numbers and letters shown on the left.
Next Resource:
Read Data from an XML File into a Listbox using C#
Previous Resource:
How to Retrieve Store image from the Database
Return to Resources
Post New Resource
Category:
Winforms Controls
Post resources and
earn money
!
More Resources
Read Data from an XML File into a Listbox using C#
How to use the windows registry
How to move textbox control at runtime
Number of Items in System.Windows.Forms.ListBox control
Windows Form's Scrolling Caption
Changing FONT of one Item in Combo Box
Popular Tags
Tag posting guidelines
Search Tags
(No tags found.)
Follow us on Twitter:
https://twitter.com/dotnetspider
Active Members
Today
srirama
(22)
Phagu Mahato
(11)
baskar
(7)
Last 7 Days
baskar
(300)
Asheej T K
(203)
srirama
(185)
more...
Awards & Gifts
Email subscription
.NET Jobs
.NET Articles
.NET Forums
Articles Rss Feeds
Forum Rss Feeds
About Us
Contact Us
Copyright
Privacy Policy
Terms Of Use
Revenue Sharing sites
Advertise
Talk to
Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.