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 =3D e.Graphics;
..=2E.Drav what you want wit the Graphics object
}
If you just want to set an image :
pictureBox1.SizeMode =3D PictureBoxSizeMode.StretchImage ;
MyImage =3D new Bitmap("yourFilePath");
pictureBox1.Image =3D (Image) MyImage ;
BR
Fabien Decret
Windows Embedded Consultant
ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/
Peter a =E9crit :
[quoted text, click to view] > Hi! I have a Picture Box in a pocket PC application and I don't know how =
to draw images in it since there isn't any Picture Box Paint event. How sho=
uld I do it? Thanks!