Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan
As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) Private Sub Command1_Click()
Const theScreen =
1
Const theForm = 0
Call keybd_event(vbKeySnapshot,
theForm, 0, 0)
'若theForm改成theScreen则Copy整个Screen
DoEvents
Picture1.Picture =
Clipboard.GetData(vbCFBitmap)
End Sub