I have the code to capture the screen and place it as the background of a form but...
The compiled program I downloaded works
the source code that I downloaded with it does not compile. It gives an error when it hits the part of a line
screen.width and screen.height
I know these exist as they are in the F2 list.
what is the problem with the code.

Dim DeskhWnd As Long, DeskDC As Long
DeskhWnd& = GetDesktopWindow()
DeskDC& = GetDC(DeskhWnd&)
BitBlt Client.hDC, 0&, 0&, 800, 600, DeskDC&, 0&, 0&, SRCCOPY
DoEvents

Thanks