Image Resource

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • #Hai

    #1

    Image Resource

    Hi,
    I have a picture box control in my form and I have 2 .GIF (animated GIF
    image). And I want to display those GIF image in my picture-box (at first, I
    want the control to show the first image and a few seconds later, I want the
    control to present the second image).
    The following are some ways I have try to deal with this task:
    - Insert two picture-box control into my form and each control shows only
    one image; and then, I will toggle the Visible property of them.
    This is not a good solution if I want to display 10 or 100 images
    - I make use of ImageList to keep my images. Through it's a very good idea,
    my animated GIF image stop animating. It's become static image.
    - Using the Image.FromFile to load image. But I don't want to reveal the
    images to the user so that they can open,edit them and change my
    application.

    Is there better solution ?

    I have used Visual C++. Using images in C++ is very easy: just insert them
    into the resource file and display them with. Is there any easy way to use
    resource in C# ?

    Thanks


Working...