| Private Declare Function GetDesktopWindow Lib "User32" () As Long Private Declare Function GetDC Lib "User32" (ByVal hWnd As Long) As Long Private Declare Function BitBlt Lib "GDI32" (ByVal hDestDC As Long, _ ByVal x As Long, ByVal Y As Long, ByVal nWidth As Long, _ ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal XSrc As Long, _ ByVal YSrc As Long, ByVal dwRop As Long) As Long Private Const SRCCOPY = &HCC0020 Sub Form_Load () Dim x As Long Me.WindowState = vbMinimized ' get me off the screen Picture1.Width = Screen.Width Picture1.Height = Screen.Height Picture1.AutoRedraw = True x = BitBlt(Picture1.hDC, 0, 0, Screen.Width, Screen.Height, _ GetDC(GetDesktopWindow()), 0, 0, SRCCOPY) End Sub |
Copy Current Screen Image |
India web developer web development India | Freelance web development ecommerce web developer | Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design