|
-
Oct 31st, 1999, 08:35 PM
#1
Thread Starter
New Member
How can I run an animated gif in VB?
-
Oct 31st, 1999, 09:14 PM
#2
You can use a Webbrowser control within a Picturebox to fake an Animated Gif box..
Place a Webbrowser Control within a Picturebox, so the Picturebox is the Container, for this example also place a CommonDialogBox on the Form:
Code:
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
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Oct 31st, 1999, 10:09 PM
#3
Hyperactive Member
At www.codeguru.com/vb , ActiveX section, is a free ocx available for download to display animated gifs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|