Hi,
I would like to know how to play GIF files in a Picture Box, anybody know how???
Printable View
Hi,
I would like to know how to play GIF files in a Picture Box, anybody know how???
Search the web for a file named gif89.dll
I once downloaded it from 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.
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).]