>Hi all,
>
>I have a listbox that shows images. At the init event of the listbox I put the images that I want to show with this code:
>
>
>LOCAL Y
>FOR Y = 1 TO 5
> THIS.AddItem(PADL((Y-1),1,'0'))
> THIS.Picture(Y) = ('\TOP\CLO\IMAGENES\PLANTILLAS\G' + PADL((Y-1),1,'0') + '.JPG')
>ENDFOR
>
>
>If the images aren’t in the specified directory this code won’t show these images. How can I include these images at my executable without having to distribute them?
>
>Thanks in advanced
>
>Manuel Tovar
>Barranquilla - COLOMBIA
Just add them to your project and make sure they are not marked Exclude. Then do a full recompile. Also in that case there is no need for the path - \TOP\CLO\IMAGENES\PLANTILLAS\ - just the image name will do since vfp will read it in from the exe.