Jump to content
  • Advertisement

Archived

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

rob64464

PictureBox (C#)

This topic is 5461 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!