La Web del Programador: Comunidad de Programadores
 
    Pregunta:  1679 - REPRODUCIR UN GIF ANIMADO
Autor:  Manuel Peiró Biosca
Hola. Cundo quiero poner una animación en un programa, no me gusta poner AVI´s porque ocupan mucho espacio y no tengo un programa para hacerlos, prefiero los GIF´s, pero no se reproducirlos. Por favor, si sabeis con que control o como hacerlo, contestarme. Gracias.

  Respuesta:  Jorge Correal Bustamante
Mira aparte de los controles marchoso.ocx y anigif.ocx, también puedes emplear al webbrowser de visal basic, habilitando la opción por componentes para agregar un nuevo elemento a la paleta de herramientas, Microsoft Internet control(cuyo logo es un mundito), hecho esto lo colocas sobre el formulario y previamente en frontpage haces una paginita donde insertarás el gif a mostrar y en el evento load del form colocas así:

Private Sub Form_Load()
'Donde WebBrowser1 es el control y entre comillas le das la ruta donde guardaste la página
WebBrowser1.Navigate "Ruta de la página en html"
End Sub

  Respuesta:  mariano huber
Existe un control llamado marchoso.ocx, este te permite animar los gifs y ademas es gratuito.(es muy facil de usar)
Si te interesa que te lo mande...

  Respuesta:  LUIS MIGUEL GONZALEZ
Otro programa que recomiendo y es un fácil de usar es el anigif que se encuentra en la página
http://www.vbcode.com/code/AniGif.zip

  Respuesta:  Xavi
Texto sacado de la pagina de Microsoft

Display animated GIFs in Visual Basic

While the Picture ActiveX control offers a great way to display graphics, it only shows the first image in an animated GIF. To display a fully animated GIF, without rebuilding the entire graphic frame by frame, you can use the WebBrowser control (just keep in mind that this control isn´t available to machines without IE 3.0 or greater). To do so, select the Microsoft Internet Controls component. When you do, the WebBrowser control appears on Visual Basic´s toolbar. Drop the control onto a form, then in the form´s Load() event place the following code:

WebBrowser1.Navigate "C:\Internet\anim.gif"

Where the filespec points to a valid animated GIF path or URL. When you run the program, Visual Basic displays the GIF.

Unfortunately, the WebBrowser also displays a right-hand scroll bar--probably not what you want for a decorative image. Believe or not, you can turn this scrollbar off just like you would normally via HTML, as in:

WebBrowser1.Navigate "about:<html><body scroll=´no´><img
src=´D:\Internet\anim.gif´></img></body></html>"

Now when you run the form, Visual Basic displays the image sans scrollbar.

Gracias a Ricardo Sierra por enviarme esta información.

  Respuesta:  Ricardo Sierra
Te envio el texto en Ingles que encontre en Microsoft.... funciona muy bien:

Display animated GIFs in Visual Basic

While the Picture ActiveX control offers a great way to display graphics, it only shows the first image in an animated GIF. To display a fully animated GIF, without rebuilding the entire graphic frame by frame, you can use the WebBrowser control (just keep in mind that this control isn´t available to machines without IE 3.0 or greater). To do so, select the Microsoft Internet Controls component. When you do, the WebBrowser control appears on Visual Basic´s toolbar. Drop the control onto a form, then in the form´s Load() event place the following code:

WebBrowser1.Navigate "C:\Internet\anim.gif"

Where the filespec points to a valid animated GIF path or URL. When you run the program, Visual Basic displays the GIF.

Unfortunately, the WebBrowser also displays a right-hand scroll bar--probably not what you want for a decorative image. Believe or not, you can turn this scrollbar off just like you would normally via HTML, as in:

WebBrowser1.Navigate "about:<html><body scroll=´no´><img src=´D:\Internet\anim.gif´></img></body></html>"

Now when you run the form, Visual Basic displays the image sans scrollbar.

--------

Saludos,

Espero que te funcione !!!

  Respuesta:  CESAR NAVA SOTO
Puedes usar el control Animation Gif ocx. Este control es shareware, pero permite registrarse.

Si lo usas sin registrar, te muestra la pantalla de copyright cuando ejecutas algun proyecto en el cual esta insertado.

Puedes encontrarlo en WWW.DOWNLOAD.COM

Si por alguna razon no lo encuentras, escribeme y te lo mando por E-mail.