473,385 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

window fadeout (intro transparency)

Hi
i'm trying to make a window 'fade out'. i do something like this:

Dim opac As Decimal
For opac = 1 To 0 Step -0.05
me.opacity = opac
Next

(this is a highly simplified version of what i actually do)
the point is, it flickers. it seems like when the window's opacity is
first changed (say, from 1 to 0.95) it flickers. later on it fades out
ok. just the first move to transpaerncy is not smooth. this occures
every time with many different types of windows i tried it on. anybody
else had that experience? any idea what can be done?

thanks

Sep 22 '07 #1
2 1015
Are you using double buffering?

http://getdotnetco.web119.discountas...Operations.htm

--
Mike

Mike McIntyre [MVP]
http://www.getdotnetcode.com
<yo**@nobhillsoft.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
Hi
i'm trying to make a window 'fade out'. i do something like this:

Dim opac As Decimal
For opac = 1 To 0 Step -0.05
me.opacity = opac
Next

(this is a highly simplified version of what i actually do)
the point is, it flickers. it seems like when the window's opacity is
first changed (say, from 1 to 0.95) it flickers. later on it fades out
ok. just the first move to transpaerncy is not smooth. this occures
every time with many different types of windows i tried it on. anybody
else had that experience? any idea what can be done?

thanks

Sep 22 '07 #2
works like magic!! thanks!!!

Sep 23 '07 #3

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

Similar topics

8
by: Askari | last post by:
(Help for Pygame module) Hi, How I can make a "fadeout text"(alpha at 255,254,253...0) on a surface and my surface's background must be transparatly? Note : I can do a fadeout but with a...
20
by: Nathan Sokalski | last post by:
I am trying to create graphics with GDI+ that include transparency. However, the transparency never seems to show up, even though my colors have an alpha value of 0. How can I generate a graphic...
6
by: Martijn Coppoolse | last post by:
Hello everyone, I've got two little apps which are able to create a window that displays something on the desktop, but are not clickable. Instead, when you click on the window, the item...
6
by: tommaso.gastaldi | last post by:
In a previous post I have been asking about a way to test Alpha Transparency. Bob and Michael have kindly provided some ideas. Here I would like to share the function I have prepared, for the...
0
by: kloplop321 | last post by:
I found this code(vb only) and it does about the same thing(in vb, not vb .NET 2005) Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute...
0
Ali Rizwan
by: Ali Rizwan | last post by:
Hello I want to make fadein and fadeout effects to myform. Is it possible in vb6 or not? If it is possible then plz help me.
1
Ali Rizwan
by: Ali Rizwan | last post by:
Hi I have something new i have give fadeout effec to my form you wanna check it out so i have attatch it. Best of Luck
6
by: shapper | last post by:
Hello, When styling a DIV as follows: <div id="intro" class="Intro">Some intro text</div> Should I use a class: ..Intro {...} Or:
7
by: =?Utf-8?B?Um9oaXQ=?= | last post by:
I have a timer object that calls UpdateWindow(). The WM_TIMER message is processed in the main Win32 message loop for the window. However, when I run the app, the image doesn't get updated (there...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.