How to get an image of a Resource

Asked

Viewed 723 times

5

I want to call an image with a button by Visual Basic 2010 Express, in the Visual Basic 2008, used that code:

picMyimage.image = My.resource.onomedaimagen

Until then it worked as wanted, but in Visual Basic 2010 is not working, wanted to know how to call an image by the button with this new version.

  • 1

    You want to take a picture from the computer and put in a Picturebox by the button? Or do you want to put the image in Resource and pull from there to Picturebox by button? Can [Edit] your question and add more details.

  • Apologies For and long I’ve been looking for. this I have imagen in the folders of Source and I want to make a small slider,I have a picturebox button one when I click this button imgen pass to another understood!

1 answer

3


For you to get an image of Resource and Add to Picturebox, Do it this way:

On the Onclick button put:

{ pictureBox1.Image = Properties.Resources.Untitledd; }

//Unitledd is the name of the image that is saved in Resource

Browser other questions tagged

You are not signed in. Login or sign up in order to post.