Results 1 to 5 of 5

Thread: Gifs in a picture box

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    I know someone posted something about being able to put animated gif in a picture box to take away the scrollbar. Can you post it again please? Thanks!

    Steve

  2. #2
    Junior Member
    Join Date
    Nov 1999
    Location
    Houston, TX - USA
    Posts
    21

    Post

    Steve:

    I don't know yet if this will be an overkill, but go to:
    http://www.planet-source-code.com/vb...txtCodeID=3186

    Type everything in one line (it's a complete URL)

    I have been struggling with same issue as far as an AVI is concerned, but I have tested that code yet.

    It seems to do what we want, as we can define the frame size and othar features we want displayed

    If you try and it works, please let me now

    ([email protected])

    ------------------
    Paul Stermann
    DSI-Houston

  3. #3
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Here's the code I posted before:

    Place a Webbrowser Control within a Picturebox so the Picturebox is the container Object..
    Code:
    Private Sub Command1_Click()
        On Error GoTo CanceledOpen
        With cdbBrowse
            .DialogTitle = "Select a GIF"
            .Filter = "GIFs (*.GIF)|*.GIF"
            .CancelError = True
            .ShowOpen
            
            WebBrowser1.Navigate .FileName
            Picture1.AutoSize = True
            Picture1 = LoadPicture(.FileName)
            Picture1.ScaleMode = vbPixels
            WebBrowser1.Move -12, -17, 1200, 780
        End With
    CanceledOpen:
    End Sub

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    Thanx Aaron, I knew someone posted that code!

    Thank you

    Steve

  5. #5
    Guest

    OLD IS GOLD

    Renovating the oldest thread...

    This is the oldest thread i found in this forum

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