Animated Gif in VB.Net for a Windows CE Application

Okay, now I know how to put in an animated gif into a Windows application.  Now how do I go about putting it in a CE application?  

        PictureBox1.Image = Image.FromFile("C:\Graphics\AnimatedArrow.gif")
        PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage

In CE I get an error:  'From File' is not a member of 'System.Drawing.Image'

Any suggestions?

servodudeAsked:
Who is Participating?
 
tsayConnect With a Mentor Commented:
Sorry, I misunderstood, you mean the FromFile method does not exist in the compact framework. Have a look at this article, this should solve it for you.

http://www.spaanjaars.com/QuickDocId.aspx?QUICKDOC=168

HTH
0
 
tsayCommented:
Are you sure that fromfile path is correct? On your smart device you can go to "c:\graphics\" ?
0
 
servodudeAuthor Commented:
I had to leave for a while; sorry for the delay in getting back to you.

I will try the above soon.  Even though it doesn't specifically name animated gifs (just images), this should work for all images -- including animated images.

Thank you for the link.  It sounds promising.  I will close this question now.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.