Archived

This topic is now archived and is closed to further replies.

PictureBox (C#)

This topic is 5175 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I have manally added a picture to the soloution explorer. ProjectName-->Add-->exsisting item-->pic.bmp now how do i put that pic in a picturebox? The picturebox already contains a picture. I want to remove the picture iin the picture box and then replace it with pic.bmp how do I do that? Thanks, Rob

Share this post


Link to post
Share on other sites
If you want to be able to change it in code:

PictureBox1.Image = New Bitmap("e:\temp\img.bmp")

otherwise, you should be able to just change it on the properties window for the picturebox, I think.

"I woke up sweating and clutching my pillow. Thankfully the powerful and reassuring visage of Optimus Prime staring back at me from my pillow case served to ease my frayed nerves. Like the giant robotic father I never had he always knows just what to say" - Gabe, Penny-Arcade

Alexandre Moura

Share this post


Link to post
Share on other sites