hi everybody

I want to view the print scrn image in my picture box So i need to get the image from the clipboard

this is what I did until now

VB Code:
  1. Dim clipdata As IDataObject
  2.  Dim myimg As Image
  3. Windows.Forms.SendKeys.SendWait("{PRTSC}")
  4. clipdata = Clipboard.GetDataObject()
  5.         If clipdata.GetDataPresent(GetType(System.Drawing.Bitmap)) Then
  6.            myimg = CType(clipdata.GetData(GetType(System.Drawing.Bitmap)), Image)
  7.         End If

this code doesn't work

thx for future help