Results 1 to 2 of 2

Thread: [RESOLVED] vb6 image control and stdPicture

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2008
    Posts
    126

    Resolved [RESOLVED] vb6 image control and stdPicture

    Hi to all

    I have a problem with vb6 image object.
    I need to change the picture displayed in the image control
    (imgBackGroung) at run time.

    I have my picture in stdPicture object.(oPicture)


    Using:

    Code:
    set imgBackGroung.picture = oPicture
    imgBackGroung.Refresh
    I can see my picture, but it is not persistent.

    Using:

    Code:
    set imgBackGroung.picture = LoadPicture(pathFile)
    I can see my picture and it is persistent

    How I can set picture using StdPicture object and make it persistent
    without loading picture from file?

    Thanks for suggestion

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Oct 2008
    Posts
    126

    Talking Re: vb6 image control and stdPicture

    Hello

    Please ignores this post.My Mistake.
    Reference Handle in common with another object.
    The second object erased the picture

    Sorry

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