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];
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.


Your email address will not be published.