How do I select a portion of the screen?

In some screen capture software, when you press a key, the client can select a portion of the screen. How can I implement this in my software written under 2.0.Net?

Here is an image of what I would like to do: http://img341.imageshack.us/img341/3782/portionpb9.png which you see I can select a portion of the screen. How can i do this?

I don't want to know how to take a screenshot ... anyone?

0


source to share


2 answers


I know it might not be a solution that you can easily copy and paste, but this open source C # project does indeed have the behavior your application requires: http://www.codeplex.com/cropper

You could take some of your code into your application. Here is an image from plex code:



alt text http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=cropper&DownloadId=8026

+2


source


Here is a tutorial that captures the screen. You can either copy only the part of the screen that was selected, or try changing the code to capture only that part.



+1


source







All Articles