Hack Forums
[.NET] Image not showing on button while running program - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Image not showing on button while running program (/showthread.php?tid=6045124)



Image not showing on button while running program - darkdev315 - Jan 29, 2020

Hello, I've added some 16x16 images for my buttons, I see them in the Form Design but I can't see them while starting the app. I added them into Resources then to BackgroundImage for each button.

example: Here
And here


RE: Image not showing on button while running program - itcorp - Jan 29, 2020

You probably haven't changed build action from none to resource on the image which you insert into resources.


RE: Image not showing on button while running program - darkdev315 - Jan 30, 2020

(Jan 29, 2020 03:37 PM)itcorp Wrote:  You probably haven't changed build action from none to resource on the image which you insert into resources.

Thanks for your reply. Can you tell me exactly where I have to look for that option?

If you are talking about ImageIndex, ImageKey or ImageList on the Properties tab, they are both on (none) but I can't change them from that.

LE: Now it works. I had an error on my code and it ran previous saved debugs where I didn't had the images on. I'm such a newb.