Animated Gif in VB.Net for a Windows CE Application

Posted on 2006-05-02
Medium Priority
Last Modified: 2012-08-14
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?

Question by:servodude
  • 2

Expert Comment

ID: 16593920
Are you sure that fromfile path is correct? On your smart device you can go to "c:\graphics\" ?

Accepted Solution

tsay earned 2000 total points
ID: 16593970
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.



Author Comment

ID: 16627848
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.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question