Capturing just a region of the screen.

Posted on 1998-06-10
Last Modified: 2010-05-03
Does anyone have a piece of code for just capturing a region of the screen. Not an entire window.

Let's say a user hit's a key, the mouse turns into crosshairs and he can drag it across a region, sending it to either the clipboard or to a picture box.
Question by:VBert
  • 2

Expert Comment

ID: 1463000
Check out MSKB article #Q161299 at:

It's not 100% what you want, but there's enough information to get you on your way.

I submit this as a comment.  If it solves your problem, let me know and I'll resubmit it as an answer.

Author Comment

ID: 1463001
clifABB, that will do it.  I was too lazy to search the Knowledge Base.  Go ahead and post as answer.


Accepted Solution

clifABB earned 100 total points
ID: 1463002
Glad I could be of service.

Check out MSKB article #Q161299 at: 


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now