Hi,
You have the Paint event :
private void pictureBox1_Paint(object sender,
System.Windows.Forms.PaintEventArgs e)
{
// Create a local version of the graphics object for the
PictureBox.
Graphics g = e.Graphics;
....Drav what you want wit the Graphics object
}
If you just want to set an image :
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage ;
MyImage = new Bitmap("yourFilePath");
pictureBox1.Image = (Image) MyImage ;
BR
Fabien Decret
Windows Embedded Consultant
ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/
Peter a écrit :