by Adam Orenstein (6 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(2 Votes)
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! =)
API DeclarationsPublic 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
Download Screenshot with print option (BitBlt and DC's) (9 KB)