Placing an Animated GIF in the Form

  • Thread starter Thread starter Rajesh Candamourty
  • Start date Start date
R

Rajesh Candamourty

Hello everybody,

I am trying to place an animated GIF on an Access Form. I am able to insert the animated gif, but it wouldn't work in the run time, the image turns to act as static.

Another question is about displaying a real time on the form with the seconds running.
I used the formats Now(), time(), date()..all show only static times

Please advise on the above issues.
Any help appreciated.

Thank you.
 
To use an animated GIF in a form, you need to get an ActiveX control like the one you can buy here: http://www.jcomsoft.com/anigif.htm. You CAN create your own "animation" by making successive pictures visible in a control. On my website (www.rogersaccesslibrary.com) is a small Access sample database called: "Animation.mdb" which shows you how.

To have a textbox update with the current time, do the following:
1) create a textbox with =Now() as the default (let's call it txtNow)
2) set the Timer Interval property of the form to 1000
3) in the Timer Event, add the following code:
Me.txtNow = Now()

That should do it.

--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L

Hello everybody,

I am trying to place an animated GIF on an Access Form. I am able to insert the animated gif, but it wouldn't work in the run time, the image turns to act as static.

Another question is about displaying a real time on the form with the seconds running.
I used the formats Now(), time(), date()..all show only static times

Please advise on the above issues.
Any help appreciated.

Thank you.
 
The easiest method is to download a 3'rd party ActiveX control. For
performance reasons, it's written in ATL and multithreaded, I like and
have used this one.
http://skyscraper.fortunecity.com/capacity/402/activex.html

For a listing of other controls have a look at:
http://www.generation.net/~hleboeuf/gif.htm

You can also use the MS Web Browser control. Check the currently
installed ActiveX controls on your system.


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Hello everybody,

I am trying to place an animated GIF on an Access Form. I am able to
insert the animated gif, but it wouldn't work in the run time, the image
turns to act as static.

Another question is about displaying a real time on the form with the
seconds running.
I used the formats Now(), time(), date()..all show only static times

Please advise on the above issues.
Any help appreciated.

Thank you.
 
Back
Top