Displaying pic not working?

I must be dumb today. I have an app that loads a picture that is in the current folder with the .exe. In the IDE this code works great and displays the pic, but when compiled it does not seem to work; the picture does not show. What am I doing wrong?

#if DebugBuild f = getFolderItem("").Parent.Child("cargraphic1.png") #else f = getfolderitem("cargraphic1.png") #endif Canvas1.Visible = True p = picture.Open(f) Canvas1.Backdrop = p

Thanks!

#if DebugBuild f = getFolderItem("").Parent.Child("cargraphic1.png") #else f = getfolderitem("cargraphic1.png") #endif Canvas1.Visible = True p = picture.Open(f) Canvas1.Backdrop = p Canvas1.invalidate

That should work with the .invalidate line, but you really should be drawing to your canvas from its own paint event and not just use the backdrop.

Thanks, Roger! I figured it out, forgot to change some other lines triggered by a listbox double-click, duh. Sorry everyone!