Click to See Complete Forum and Search --> : How do I run gif files???
rino_2
Dec 3rd, 1999, 03:45 AM
Hi,
I would like to know how to play GIF files in a Picture Box, anybody know how???
Frans C
Dec 3rd, 1999, 05:06 AM
Search the web for a file named gif89.dll
I once downloaded it from www.uni-heidelberg.de (http://www.uni-heidelberg.de) but I don't know where exactly and they have quite a big site.
It contains a control that is capable of showing animated gifs. Its not in a picturebox, but it's the only control I know of, that can do that.
Jessie
Dec 3rd, 1999, 06:03 AM
Aaron Young gave me this code that should work I tried but didnot get it to work, Too new to vb and computers
Use the Componet Microsoft internet controls
with a picture box
Private Sub Command1_Click()
On Error GoTo Load_Cancel
With CommonDialog1
.CancelError = True
.DialogTitle = "Open an Animated GIF"
.Filter = "GIFS (*.GIF)|*.GIF"
.ShowOpen
WebBrowser1.Navigate .FileName
WebBrowser1.Move ScaleX(-12, vbPixels, vbTwips), ScaleY(-19, vbPixels, vbTwips), Width, Height
Picture1 = LoadPicture(.FileName)
Picture1.AutoSize = True
End With
Load_Cancel:
End Sub
[This message has been edited by Jessie (edited 12-03-1999).]
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.