|
-
July 2nd, 2001, 09:37 PM
#1
How can I play a animation gif image in form in Visual Basic.
I want to display a animation gif image in a visual basic form. So I long the help from someones.
Thanks .
Luu Truong Huy
-
July 3rd, 2001, 05:59 AM
#2
Re: How can I play a animation gif image in form in Visual Basic.
You can use the webbrowser control to do that. Use the navigate function to go to the picture. This leaves some whitspace at the top and at the left side, so you need to move the control a bit. The best way to do this is to place the control inside a picturebox. After that, you can use the picturebox to give the control the correct height/width
' load the picture
Webbrowser1.navigate "c:\mygif.gif"
' move the control to get rid of whitespace
WebBrowser1.Move -ScaleX(12, vbPixels, vbTwips), -ScaleY(20, vbPixels, vbTwips), Screen.Width, Screen.Height
' resize the picturebox by loading the file, and then using autosize
Picture1 = LoadPicture("c:\mygif.gif")
Picture1.AutoSize = true
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
-
July 3rd, 2001, 06:34 AM
#3
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
|