Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Animated Gif

Status
Not open for further replies.

capone67

Programmer
Nov 6, 2000
115
CA
How do I get an animated gif to play on a form?

Ken
 
Don't think you can in VB!! I would be interested to know if this is possible, though.

Simon
 
I have a workaround for this by using a label but every time I change the caption it flahses. Is there a way to stop the caption from flashing a black background every time it changes?

Ken
 
I also thought of a way around it by using an image control and a timer and changing the picture displayed using the timer - BUT THIS IS NASTY

Simon
 
I tried that too, my control kept redrawing itself.
 
There are a couple of ways to do this. One uses MS Agent (if your customers don't mind the a loss in performance), see:

Another is to use the Microsoft WebBrowser control. See:

I think the second link is your best shot. Have fun!
VCA.gif

Alt255@Vorpalcom.Intranets.com
 
I also tried to get this to work on a form.. I did notice the property defaults to BMP when a picture is selected and dropped on the form in a picture box or image box. the Gif would appear, but not animate.

A sprite control component is available, but looking it over you have to have the Gif89 broke up to it's individual file.

some how the vb6 sets the Gif as BMP. if there is a way to set the property of the picture to it's original form then the Animated Gif should animate.

The only way to try to get the Gif to Animate, might be to call it from a file to the Image box. there is a URL property within the setting of the image box that I was going to try this with..
 
You can read visual basic step by step, from microsoft they have one example to get
animated gif in a forms
 
Hi guys

The browser control idea worked fine except that it is beveled and the look doesn't work with my form. I am just gonna go with a Static Label caption that appears when needed. I have already put too much time in on this one.

Ken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top