Instead of pictures, an empty space. Further images are displayed standard which were already in this project.

But the pictures are displayed when viewed in Visual Studio. enter image description here

  • Give a reproducing example. - VladD

1 answer 1

Check the paths to the folders with pictures. You have an exe compiled in the bin / debug / or bin / release / folder relative to the main project. Solution options:

  1. Add on the way to the pictures "../../your path." But this is a bad decision. When you collect the installer, you have to rewrite the path and, most likely, will not be displayed in the studio
  2. Throw a folder with pictures in the directory in which the project is going. The same solution is also so-so - every time you change / add pictures, re-cast them
  3. Add a folder with pictures in the properties value "Copy to output directory" as "Copy always" or "Copy if never". This is a normal decision.
  4. Add all your files as resources (I would do that).