Animated Gif in VB.Net for a Windows CE Application

Posted on 2006-05-02
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
    LVL 5

    Expert Comment

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

    Accepted Solution

    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

    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

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video discusses moving either the default database or any database to a new volume.

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now