Search Tools Links Login

Screenshot with print option (BitBlt and DC's)


Visual Basic 6, or VB Classic

This little program will let you take a picture of the screen at any time and Blitter from the screen's DC to the Form's DC making it appear as the form background you can then save it as a .BMP
or print it out. Sorry about the messy .BAS but its all there. Please take the time to leave a comment and vote. Thank you. Enjoy! =)

Original Author: Adam Orenstein

API Declarations

Public Declare Function BitBlt Lib "gdi32.dll" (ByVal hdcDest As Long, ByVal nXDest As Long, ByVal nYDest As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hdcSrc As Long, ByVal nXSrc As Long, ByVal nYSrc As Long, ByVal dwRop As Long) As Long
Public Declare Function ReleaseDC Lib "user32.dll" (ByVal hWnd As Long, ByVal hDC As Long) As Long
Public Declare Function GetDC Lib "user32.dll" (ByVal hWnd As Long) As Long
Public Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Long) As Integer
Public Declare Function GetDesktopWindow Lib "user32" () As Long

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 148 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD78897182000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 9,871 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.