Hi Augusto,
Many projects deploy their resources with the installation to a subdirectory.
The picture name property then becomes 'res\welcome.png'
For example:
p_welcome.picturename = 'res\welcome.png'
deployed files
c:\program files (x86)\starcomp\star.exe
c:\program files (x86)\starcomp\res\OK.png
c:\program files (x86)\starcomp\res\NOTOK.png
Or closer to your need:
if lb_DatabaseOK then
pb_ok.picturename = 'res\OK.png'
else
pb_ok.picturename = 'res\NOTOK.png'
end if
Hope this helps
Lars