I set a bost-build copy file and the image is copied in the Resources Folder.
I wanted to load and display a file, so I put this code (in Window1.Open Event):
// Load and display an image Dim Res_Fldr_FI As FolderItem Dim An_Img_FI As FolderItem Res_Fldr_FI = App.ExecutableFile.Parent.Child("Resources") If Res_Fldr_FI <> Nil Then // Get a Reference to the image file An_Img_FI = Res_Fldr_FI.Child("Coquille.png") // Load that image file cLogo.Backdrop = Picture.Open(An_Img_FI) cLogo.Invalidate End If
Nothing appears where it is due…
What’s wrong ?