Here is a quick example
VB Code:
  1. Option Explicit
  2. Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, _
  3. ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
  4.  
  5. Private Const VK_SNAPSHOT = &H2C
  6.  
  7. Private Sub Command1_Click()
  8.     Clipboard.Clear
  9.     '   Get the Entire Screen
  10.     keybd_event vbKeySnapshot, 1, 0, 0
  11. End Sub
  12.  
  13. Private Sub Command2_Click()
  14.     Clipboard.Clear
  15.     '   Get the Active Window
  16.     keybd_event vbKeySnapshot, 0, 0, 0
  17. End Sub
  18.  
  19. Private Sub Form_Load()
  20.     Command1.Caption = "Full Screen"
  21.     Command2.Caption = "Active Window"
  22. End Sub