如何截取螢幕畫面

原始來源:??

事實上,這是摸擬按下Print Screen的作法
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Const theScreen = 1
Const theForm = 0

Private Sub Command1_Click()
Call keybd_event(vbKeySnapshot, theForm, 0, 0)
'若theForm改成theScreen則Copy整個Screen
DoEvents
Picture1.Picture = Clipboard.GetData(vbCFBitmap)
End Sub