>>>>>The problem is that I can NOT update the image that has changed.
>>>>
>>>>What if you try Thisform.MyImage.Picture=Thisform.MyImage.Picture ?
>>>>
>>>>Nick
>>>I think it should work but if not you can create Image control class and remove/add object on form programmatically.
>>
>>
>>*** example **
>>THISFORM.PICTURE="c:\myoldpic.bmp"
>>
>>******* code goes by ***
>>
>>THIS.PARENT.PICTURE=""
>>THIS.PARENT.PICTURE="c:\myoldpic.bmp"
>>
>>
>>
>>*** eoe **
>>
>
>Nothing described above will work. It seems that whenever you display an
.
.
.
image, Foxpro will load the image into the memory. If you display an image >
>then try this:
>MyForm.MyImage.Picture="c:\myoldpic.bmp" && myoldpic.bmp will be shown
>****** delete the file c:\myoldpic.bmp
>MyForm.MyImage.Picture="c:\myoldpic.bmp" && nothing will be shown
>******* copy another bitmap file to myoldpic.bmp
>MyForm.MyImage.Picture="c:\myoldpic.bmp" && we expect the new
> && bitmap will be shown!
> && NO, ONLY THE OLD ONE!
I apologize. Look into the API calls LoadBitmap, LoadImage, LoadResource, and similar these may allow you to do what you want by applying the changes to the image in memory. Other than opening a new OLE object or using a 3rd party OCX that is designed to be a paint program tool I have no more ideas.
~Joe Johnston USA
"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams