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 should I do it? Thanks!
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");