erithracus
Programmer
Hello,
When I add a WMF file to a picturebox, the following code is generated:
this.pictureBox1.Image = ((System.Drawing.Imaging.Metafile)(resources.GetObject("pictureBox1.Image"
));
When the application runs, an invalid cast exception rises. Apparently the result of "resources.GetObject("pictureBox1.Image"
)" can not be casted to "System.Drawing.Imaging.Metafile".
Has anyone experience with WMF files?
TIA,
Jan
When I add a WMF file to a picturebox, the following code is generated:
this.pictureBox1.Image = ((System.Drawing.Imaging.Metafile)(resources.GetObject("pictureBox1.Image"
When the application runs, an invalid cast exception rises. Apparently the result of "resources.GetObject("pictureBox1.Image"
Has anyone experience with WMF files?
TIA,
Jan