VB3 Copying Entire Screen into a Picture Box in Visual Basic (80670)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 1.0
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
This article was previously published under Q80670 SUMMARY
Using the Windows API call BitBlt, you can capture the entire
Microsoft Windows screen and place the image into a Microsoft Visual
Basic for Windows picture box.
First, get the handle to the desktop. Then use the desktop window handle
to get the handle to the desktop's device context (hDC). Finally, use
the Windows API call BitBlt to copy the screen into the Picture property
of a Visual Basic for Windows picture box control.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbcode kbWndw KB80670 |
---|
|