VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Screenshot with print option (BitBlt and DC's)

Adam Orenstein  (6 Submissions)   Graphics   Visual Basic 3.0   Advanced   Wed 3rd February 2021

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 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

Rate Screenshot with print option (BitBlt and DC's) (2(2 Vote))

Download Screenshot with print option (BitBlt and DC's)

Screenshot with print option (BitBlt and DC's) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters