Member Avatar for DyO1

Hello, I need a code that checks if a button is pressed to change the BackGround Image of Picture Box
So when the button is pressed,a backgroundimage of a picturebox must be changed
I tried to use

            PictureBox1.BackgroundImage.FromFile("IMAGE.bmp")

*THE IMAGE IS IN THE PROJECT,IT'S NOT ON THE HARD DRIVE ANYMORE**but didn't work,Please Help ME !

is it in your resource settings? if so try My.Resources.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.