By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,480 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,480 IT Pros & Developers. It's quick & easy.

Animated GIF as background

P: n/a
It's not that I expected it to work, but can anyone explane why if I put an
animated gif as
the background image of a form it is no longer animated?
Is there any way to actually do that?
Thanks,
Al
Dec 5 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You can use a picturebox for showing an animated gif

Greetz Peter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"Al_C" <ac****@bicnet.net> schreef in bericht
news:#f**************@tk2msftngp13.phx.gbl...
It's not that I expected it to work, but can anyone explane why if I put an animated gif as
the background image of a form it is no longer animated?
Is there any way to actually do that?
Thanks,
Al

Dec 5 '05 #2

P: n/a

It won't work as a form background because the form doesn't have the
"plumbing" to execute an animation. Who knows, maybe in future....... but
anyway, if you are designing a UI, think very carefully before using
anything that "shifts" or animates without very good reason (a timer for
instance) - object shift is very annoying for a user in my experience.

"Al_C" <ac****@bicnet.net> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
It's not that I expected it to work, but can anyone explane why if I put
an animated gif as
the background image of a form it is no longer animated?
Is there any way to actually do that?
Thanks,
Al

Dec 5 '05 #3

P: n/a
This would be extremely annoying if overused, but you might be able to make
it work if you sed a CSS trick. Put the GIF in a div at layer 10, and put
your content in another DIV at layer 100 (could be just 1 and 2, but 10 and
100 give you room to work). You'll need to fiddle with positioning, but it
should work.

"Al_C" <ac****@bicnet.net> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
It's not that I expected it to work, but can anyone explane why if I put an animated gif as
the background image of a form it is no longer animated?
Is there any way to actually do that?
Thanks,
Al

Dec 5 '05 #4

P: n/a
Thanks for all the inputs.
My application requires a moving images over other another images.
I've been directed in another direction that has worked, but I was hoping to
keep it simpler ;)
If I slip a picture box under my moving picturebox, I wind up seeing all the
way through to the
form underneath. So it kind of defeats the purpose. That is why I liked the
simplicity of having an animated GIF as the base forms image. (although it
is a CPU hog)
Fortunately for now I can control the design of the application to prevent
this circumstance.
But it would be great to be able to put pictureboxA on top of pictureboxB
and set it so that the transparency
of pictureboxA showed pictureboxB instead of the root form.
Sort of like selecting how many layers you wanted to be transparent to.

"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:eM****************@TK2MSFTNGP11.phx.gbl...
You can use a picturebox for showing an animated gif

Greetz Peter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"Al_C" <ac****@bicnet.net> schreef in bericht
news:#f**************@tk2msftngp13.phx.gbl...
It's not that I expected it to work, but can anyone explane why if I put

an
animated gif as
the background image of a form it is no longer animated?
Is there any way to actually do that?
Thanks,
Al


Dec 7 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.