Animated GIF as background

A

Al_C

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
 
R

Robson

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.
 
R

Richard Dudley

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.
 
A

Al_C

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top