Check this code--Picturebox and Button
Please post in the most appropriate forum. Moved.
Handle each Button's Click event. To create a Click event handler for a Button you double-click it in the designer. In each event handler you need to assign your Image to the PictureBox. There are a number of ways to do that and the best depends on your situation. If you're using images contained in files on disc then the most likely method is to call the PictureBox's Load method and pass it the path to the image file.
Suppose if i want to include all the images in the package(project) itself then what shud be the code for it.
I tried this code on the button event (i wrote the code by double clicking the button)
picturebox1.image="1.jpg"
where 1.jpg was the image that i imported in the project.But it showed me the error..
please tell me wt shud i do.
I dont want my images in the external media like CDS..
please help me out..