Location of images to be loaded in a PictureBox @ runtime


#1

Hello.
I’ve a simple NSB 6 web app, in which I put a PictureBox, which I’d like to fill in code. The console rises an error 404. I’ve tried different locations with no luck.
Can Y pls help me?

============================relevant code=============================
Function Form_ini_onshow()
T=SetTimeout(goToForm0, 1200)
cx=PictureBox5.getContext(“2d”)
cx.addImage(“images/SigilloCammino.jpg”)
End Function
============================end of relevant code=============================


#2

Cattura


#3

Cattura


#4

(If you put triple back ticks ``` before and after code, it will be properly formatted)

Have you included ‘images’ in the manifest property (In Project Properties)?


#5

Hello George.
is it another breaking change? In the old (vers.4) project, migrated to the new one, I didn’t write such a parameter (?). Should I write “Images” into “Manifest”?


#6

Did you give it a try?


#7

I wrote “images” into the manifest parameter

However, I get another error, and the image still doesn’t load


#8

image.png


#9

You probably need to clear the cache in your browser.

To read more on this, go to the AppStudio Help menu and choose Handbook Offline. Then,

  • Main page (on the left)
  • Tech Notes
  • Solutions to Common Problems