PDA

View Full Version : control to place animated gifs?


netharam
07-26-2002, 04:08 PM
Which control should be used in vb 6.0 to place an animated gif file?Hi, I've an animated gif,I used picture & image controls to display it ,but only the first frame is displayed.How can I display the full animation of the gif i.e put the animated gif in which control? :eek:

Paul Komski
07-29-2002, 07:04 PM
You will need to use a special control (such as an ActiveX control) or use some "tricks" to display animations. Here (http://www.vbdiamond.com/Sources/ViewCategory.asp?cbCategory=97&CategoryName=Annimation) is someone who likes to play around in this area.

netharam
07-31-2002, 05:25 AM
Hi Thanks a lot for u'r reply .This link seems to be very useful,if u have some more please send them to me.:cool:
Bye for now.

netharam
08-06-2002, 03:57 PM
Hi, Paul everything is fine with the gifAnimator active x control,but I face two problems now.

1)I find that the animated gif is not loaded into the activeX control often.Suppose I execute the program ten times,only once my gif file is visible.What may be the problem?I've set the "giffile" property also.

2) When I tried to run the exe file created from this project in a machine that did not contain VB, I received an error saying "gifAnimator.ocx not found".Where should I install this ocx file & how can I run it in all the other systems?

Expecting your replies.:rolleyes:

jabarnutcase
08-06-2002, 04:49 PM
Paul-
Anyone ever tell you what a nice guy you are? :D

Paul Komski
08-06-2002, 06:38 PM
Ah - the joys of "distributing" an application; possibly on pcs with different OSes etc. Not so cosy as running them on the original pc, where all the files and libraries are obviously intact/registered.

The .ocx files represent the ActiveX controls and are stored, by default, in the Windows/System folder. So the simple solution is to place a copy of the relevant .ocx file in that computer's System folder. Not sure if the control will also have to be formally "Registered" with/by your application on the new pc though - but it sounds like it just needs to be able to find the file, which would have been placed in your own System foler by VB6.

You might find Registering Programatically (http://support.microsoft.com/default.aspx?scid=KB;EN-US;q173091&) of some interest/use.

Don't know why you are having intermittent success with point (1) though.

Paul Komski
08-06-2002, 09:12 PM
Just for jabarnutcase

"Beware the Jaberwock my son
The jaws that bite, the claws that catch
Beware the Jubjub bird, and shun
The frumious Bandersnatch" L.C.

jabarnutcase
08-06-2002, 09:59 PM
Beware (http://www.poets.org/poems/poems.cfm?prmID=1457) indeed! ;):eek: