Pocket Pc - NotSupportedException sur une PictureBox
Bonjour.
Je développe une application sur Pocket Pc.
Sur mon design j'ai ajouté une pictureBox pour mettre une image. Au début j'avais pas de souci pour lancer mon application, et d'un coup, je sais pas pourquoi, la pictureBox fait planter l'application, alors que je n'ai pas retouché à la pictureBox...
Je reçois l'exception
Citation:
NotSupportedException System.Drawing.Bitmap
Mon image est à l'origine en png, j'ai essayé de la mettre en bmp, mais ça change rien.
Je pense pas que ce soit très utile mais on sait jamais, je met le code du designer pour la pictureBox:
Code:
1 2 3 4 5
| this.pictureBox.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox.Image")));
this.pictureBox.Location = new System.Drawing.Point(43, 186);
this.pictureBox.Name = "pictureBox";
this.pictureBox.Size = new System.Drawing.Size(165, 60);
this.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; |
Le plus surprenant c'est que ça fonctionnait bien au début...