473,503 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forms & Opacity

Hi everyone,

I have a simple timer which decreases the Opacity from 1.0 to 0.0 and back
again.

The problem I have is, when it changes from 1.0 to 0.99, the whole form
flickers completely before the smooth fading out. It never does it from 0.0
to 0.1, only from 1.0 to 0.99.

Anyone seen this before?

Cheers

Adam
Nov 16 '05 #1
2 2436
When you change Opacity from 1.00 to .99, the form has to switch from a
default condition of not using the Opacity setting at all to a condition of
having to calculate and use the Opacity property. A work around is to start
your Opacity at .99.

HTH

DalePres
MCAD, MCDBA, MCSE
"Adam" <adam@*NO_SPA_M*q-state.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi everyone,

I have a simple timer which decreases the Opacity from 1.0 to 0.0 and back
again.

The problem I have is, when it changes from 1.0 to 0.99, the whole form
flickers completely before the smooth fading out. It never does it from
0.0 to 0.1, only from 1.0 to 0.99.

Anyone seen this before?

Cheers

Adam

Nov 16 '05 #2
Thanks - I thought it must be something like this.

The downside is that when you have a lot of custom painting going on, its
incredibly slow updating even if your forms set at .99

And amazingly, you can still see through it!

"DalePres" <don-t-spa-m-me@lea-ve-me-a-lone--.com> wrote in message
news:u$*************@TK2MSFTNGP15.phx.gbl...
When you change Opacity from 1.00 to .99, the form has to switch from a
default condition of not using the Opacity setting at all to a condition
of having to calculate and use the Opacity property. A work around is to
start your Opacity at .99.

HTH

DalePres
MCAD, MCDBA, MCSE
"Adam" <adam@*NO_SPA_M*q-state.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi everyone,

I have a simple timer which decreases the Opacity from 1.0 to 0.0 and
back again.

The problem I have is, when it changes from 1.0 to 0.99, the whole form
flickers completely before the smooth fading out. It never does it from
0.0 to 0.1, only from 1.0 to 0.99.

Anyone seen this before?

Cheers

Adam


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
10202
by: Marek Mänd | last post by:
This posting will express my concern about the future of css3 forthcoming recommendation. I think for long time now, that the current implementation of CSS attribute opacity is less than usable...
6
2526
by: Ayende Rahien | last post by:
Excetremely annoying problem, I've an application with a long startup time. So I created another form with my logo in it to as a splash screen. The splash screen is run from another thread and is...
1
3091
by: Bradley1234 | last post by:
Hi Im using an example on graphics from my Deitel book, http://www.deitel.com/books/csharpAPI1/ there are nice downloads, this one shows a GDI+ example where you describe a rectangle, color...
2
1678
by: BuzzLight | last post by:
This is my problem :- - I have set a form frmSplash as the startup form instead of sub Main. - This means I dont create an instance of it myself at startup.. its automatically created. - I have...
4
7669
by: beaker | last post by:
Hello, Is there a way to alter the opacity of an MDI child window? I've tried setting the Opacity property, but it has no effect on the children (fine for the parent though). (I want to...
1
4183
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
15
3693
by: Sunny | last post by:
Hi, I can change the lement opacity in IE using. abc.style.filter = 'alpha(opacity=' + 10 + ')'; But this dont work in firefox, In firefox it throws error. How I can change the opacity of an...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
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
5570
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,...
0
4666
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
3160
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
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.