HuyLT
July 2nd, 2001, 09:37 PM
I want to display a animation gif image in a visual basic form. So I long the help from someones.
Thanks .
Luu Truong Huy
Thanks .
Luu Truong Huy
|
Click to See Complete Forum and Search --> : How can I play a animation gif image in form in Visual Basic. HuyLT July 2nd, 2001, 09:37 PM I want to display a animation gif image in a visual basic form. So I long the help from someones. Thanks . Luu Truong Huy Cakkie July 3rd, 2001, 05:59 AM 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 slisse@planetinternet.be 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 maxcode July 3rd, 2001, 06:34 AM look at: http://www.maxcode.com/ and then the following category: Sourcecodes->Visual Basic->Graphics http://www.maxcode.com/images/s2source.gifhttp://www.maxcode.com/images/s2tut.gifhttp://www.maxcode.com/images/s2doc.gifhttp://www.maxcode.com/images/s2com.gif All At http://www.maxcode.com/ ------------------------------------ Clemens Timmermans (17-Year old) ------------------------------------- - 'The Matrix has you, NEO' -(quote from: the Matrix) codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |