RE: pictureBox dosn't work ?? by DarrenShaffer
DarrenShaffer
Mon Sep 27 19:49:02 CDT 2004
Rainer,
Include your image as an Embedded Resource in your Smart Device project,
then use this code:
pictureBox1.Image = new
Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("{mynamespace}.myPic.bmp"));
-Darren
"Rainer Borchmann" wrote:
> Hi,
> i want to try to sho a picture in the pictureBox with this code:
>
> pictureBox1.Image = System.Drawing.Image.FromFile("myPic.gif");
>
> But i got a error that "System.Drawing.Image dos not contain a definition for
> "FromFile".
>
> Please, how ca i resolve that problem??
>
> Bye
> Rainer Borchmann