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