Results 1 to 2 of 2

Thread: Paste DIB data from clipboard into Picturebox[RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2001
    Location
    Buffalo, NY
    Posts
    297

    Paste DIB data from clipboard into Picturebox[RESOLVED]

    Hey All,

    This is what I would like to do:

    Code:
    Me.picTemp.Image = Clipboard.GetDataObject.GetData("DeviceIndependentBitmap")
    Obviously, that doesn't work. Does anyone know how I could perform that function though?

    Thanks!

    --Ben
    Last edited by BenFinkel; Dec 10th, 2003 at 10:09 AM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2001
    Location
    Buffalo, NY
    Posts
    297
    Figured it out!

    Code:
    If Clipboard.GetDataObject.GetDataPresent(GetType(System.Drawing.Bitmap)) Then
                Me.picTemp.Image = CType(Clipboard.GetDataObject.GetData(GetType(System.Drawing.Bitmap)), Bitmap)
    End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width