Results 1 to 3 of 3

Thread: How do I run gif files???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Post

    Hi,

    I would like to know how to play GIF files in a Picture Box, anybody know how???

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Post

    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.

  3. #3
    Lively Member
    Join Date
    Nov 1999
    Location
    Calgary,Alberta, Canada
    Posts
    70

    Post

    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).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width