View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Peter T Peter T is offline
external usenet poster
 
Posts: 5,600
Default LoadPicture fails

after loading the picture do

Me.Repaint

Regards,
Peter T

<kirkm wrote in message ...
Hi,

I have an image control on a Form and load the pictures with
the command:

Form1.img1.Picture = LoadPicture(MyPicture)

A click on the form correctly assigns the
next picture filename (and Path) to MyPicture and you see each picture
in succession.

However, if the image is clicked on, the next picture(s) isn't shown.
The code still executes, with all the correct parameters for MyPicture
but the LoadPicture instruction just seems to be ignored. I can step
through and see this, and it occurs every time.

There's no click event (or anything else) coded for the img1 control.

Anyone know what's happening here? !!

Thanks - Kirk