Results 1 to 6 of 6

Thread: [RESOLVED] Paste JPG into Picture Box, How?

  1. #1

    Thread Starter
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Resolved [RESOLVED] Paste JPG into Picture Box, How?

    I am trying to paste an image that I copied from a web page into a picture box. I am using the following code but it isn't working:

    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Command1_Click()
    4.     Picture1.Picture = Clipboard.GetData(vbCFBitmap)
    5. End Sub

    What am I doing wrong?
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  2. #2
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Paste JPG into Picture Box, How?

    it's working for me. i just omitted the (vbCFBitmap).
    Show Appreciation. Rate Posts.

  3. #3
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Re: Paste JPG into Picture Box, How?

    Working fine for me with the vbCFBitmap.

  4. #4
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Paste JPG into Picture Box, How?

    Quote Originally Posted by Jmacp
    Working fine for me with the vbCFBitmap.
    yep, working with the vbCFBitmap on my PC too.
    Show Appreciation. Rate Posts.

  5. #5

  6. #6

    Thread Starter
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: [RESOLVED] Paste JPG into Picture Box, How?

    Hmmm, now it is working. Strange, thanks for the posts!
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


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