Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Reply
Flickering or fading an image in or out.
Todd Vance
Jun 17 2007 10:57 AM
1.9k
Reply
I am trying to give some kind of graphic effect to an image.
Can you guys tell me a way to make a card either appear to flicker or to fade in and fade out?
I thought that that a picBox would have an Opacity attribute, but it doesnt so I couldn't play with that in a loop like I initially thought.
Then I thought I would make a loop that randomly changed the visible attribute, but it just didnt work - it just shows the card...cant figure it out
Random
rnd =
new
Random
();
answerpb.Visible =
false
;
for
(
int
i = 0; i < 100000; i++)
{
int
flickerVis = rnd.Next(0, 2);
if
(flickerVis == 1)
{
answerpb.Visible =
true
;
}
else
answerpb.Visible =
false
;
}
answerpb.Visible =
true
;
=========
But I couldnt get that to work the way I wanted...anyone got any basic ideas?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
draw circle
Novice Problem11