Link to home
Start Free TrialLog in
Avatar of stupidstudent
stupidstudent

asked on

Animated GIFS in VB 5.0?

Is it possible to place an animated GIF on a vb form and have it play, as if it was in a browser? And after making it an .EXE file will it still be animated?

Thank you much,
StupidStudent
Avatar of Answers2000
Answers2000

The easiest way to do this is to place a IE web browser control on your form (SHDOCVW.DLL).

1. Bring up your form
2. Make sure WebBrowser is visible on the toolbar (it's a kinda world icon).  If not right click on the toolbar and make sure "Microsoft Internet Controls" is checked
3. In your code navigate to the GIF (it can be your local disk or the internet).  example:
Private Sub Command1_Click()
WebBrowser1.Navigate "c:\myimage.gif"
End Sub

It will animate.
It will also allow browsing to internet based graphics, jpgs and html etc.
Avatar of stupidstudent

ASKER

Hello Answers2000,

I still don't understand how to do it.  I am new to VB 5.0
I am currently running VB 5.0 Professional Edition.   Please help me further, and I apologize for any inconveniences...

Thank you kindly,
StupidStudent
Adjusted points to 20
Please clarify Answers2000.  I know that you can have a third party software (http://www.jcomsoft.com/) to do this but are there codes to do this?

Thanx.
ASKER CERTIFIED SOLUTION
Avatar of Answers2000
Answers2000

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you Answer2000, you have make it very clear for me.