I am having a program written and I am developing on 2 different pcs.
First PC: Windows 7 Professional 64bit with VS 2015 Community.
Second PC: Windows 10 64bit with VS 2013.
Problem:
On the first PC, when I build and run the program or even just run the exe, the icons for the buttons are not displaying. It shows only square boxes in place of icons. I am getting no errors either. Everything works fine on the second PC.
Any idea why this may be? I have googled and cannot seem to find an answer.
If you just copy and paste the images into the folder of your project using windows, it is unlikely that the build is gonna predict that you need this image as a part of your process.
You need to add an image item to your project using Visual Studio and set its properties (Copy To Ouput Directory => Always
).
Or the best approach is go to your Project Settings > Resources and add an image resource from existing file there. And then use it inside your code using Properties.Resources.YouImageName
you through the designer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With