salve a tutti ho la necessita di fare uno sceen shot di tutto il desktop e nn sl di un form pero su internet ho trovato questo codice sl che nn mi funziona perche nn so quali sn le api potreste aiutarmi?
Dim hWnd As Long
Dim hDC As Long
hWnd = GetDesktopWindow()
hDC = GetWindowDC(hWnd)
BitBlt Picture1.hDC, 0, 0, 20000, 20000, hDC, 0, 0, SRCCOPY
ReleaseDC(hWnd, hDC)
SavePicture Picture1.Image, "C:\a.bmp"