Answer the question
In order to leave comments, you need to log in
How to specify the path to an image located in the project's own directory?
If you run the program on other computers, then most likely it will not show this picture because of the wrong location.
PictureBox1.Image = System.Drawing.Bitmap.FromFile(My.Application.Info.DirectoryPath & "\somepicture.jpg")
This method doesn't work, it says - no such file exists. Indicates the directory c\windowsapplication\bin\..картинка.jpg
it was there and never was. The picture itself is in windowsapplication\Resources\
Tried .AsseblyName - so he writes windowsapplication\Resoursces\картинка
and says that there is no such. How to find this picture?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question