473,472 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Animated GIF as background

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
4 20500
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

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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JW | last post by:
Hi, I am trying to see if I can display an animated .gif file on a Java application (that is, I do not want to have to show a series of static images to simulate animateion; I just want to...
12
by: Miha Kovac | last post by:
Hi, can anybody help me with this one please. How can I make a glittering stars effect for my background? Please help, TIA M
3
by: DOK | last post by:
I'm trying to create an eBay ad. So far, I've got the page the way I want it. However, the few animated gif's I have on the page display but are no longer animated. I can get it to work in...
1
by: Mark | last post by:
ASP.NET: Any suggestions on how to display an animated .gif file on a web page while a stored procedure is running in the background? For example, on some of the airline sites, it asks you to...
3
by: nemesis.saurabh | last post by:
hi, i am working on a project to develop a booking engine for an airline. in the background information is shared by post/request method. in one of the interface pages. i need to implement an...
6
by: philleep | last post by:
hi there, can i make an animated gif that changes slowly over time and then use it as a background image for a site? or is there a better way to do this? cheer philleep
1
by: deerchao | last post by:
I wonder if there is a efficiant way to provide a animated background for Form/Control? If I redraw the background of a control, all it's sub controls will be forced to redraw, right? Thanks!
3
by: kirk | last post by:
I have a form with a PictureBox control on it. The .Image property is set to a PNG file(which shows the picture of the US map) with some transparency in it. The .BackColor property is set to...
1
by: Kevinst | last post by:
Hello there, I have got a problem and several approaches but none is really staisfying: Lets assume we have a form. On its surface we have got several animations (like a blinking light). This...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.