General information
Category:
Forms & Form designer
If you want to use WebBrowser control:
Insert a Web Browser control on your form, and size it accordingly. Let's say that you name it objWB
In your form's Init method, put the following code:
thisform.objWB.Navigate("c:\image\animated.gif")
* You will need this to deactivate scroolbars of th WebBrowser
do while thisform.objWB.ReadyState <> 4
enddo
thisform.objWB.Document.Body.Scroll = "no"
But, if you have gif89.dll, i think this is a better way to do it ...
First you must to register the class.Run this in Command prompt: "regsvr32 gif89.dll"
After that:
Tools -> Options -> Controls -> ActiveX contols -> select the gif89 Class
Now you can go in the Form Controls -> View Classes -> ActiveX Controls.
Insert a Gif89 control on your form, and size it accordingly. Let's say that you name it objGif.
In filename property of the object put the name of the image, you can set autoplay property .t.
If you want to play yourself the control you have 2 methods: play and stop.
That's it.
Sorry for my bad english ...
Best regards,
Nitu Petru
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only