A good format to save images in is .png

Create images as 96dpi .png for optimum quality.

Save the image file to your project directory

Simply place a PictureBox control on the form where you want it, set the size and set the image filename as the picture to use.

There is no need to add the image to the package and deployment of the project – it is automatically included in the resource file.

Setting A Picture Box Image At Runtime

Add an ImageList to the form and set the image size. < Load it with the images you wish to select from.
Then set the image to be displayed like this


	MyPictureBox->Image = MyImageList->Images[0];
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published.