Re: Fade into a Picture Box or Image Control

Tech-Archive recommends: Speed Up your PC by fixing your registry



> You guys showed me how to write the code below to produce what I think is a
> very cool fade in of an entire form. On an XP box now I want to know if
> there an equivelent way to fade in just an JPEG image into a Picture Box, or
> even better, an Image control which would be placed on a form which is
> already loaded and visible. (I know this is a little bit of a lazy question,
> but you guys seem to be able to answer everything in about two minutes!)
<code snipped>

Have a look at the AlphaBlend() API call. Since the image control is actually rendered onto it's parent control at
runtime it would be possible to use the image control as a source (just hide it during the fade-in) but probably easier
without since you have more control.
Have a look at this old post (just the AlphaBlend() part, ignore the rest!) for example syntax if you need it:
http://groups.google.co.uk/group/microsoft.public.vb.general.discussion/msg/124d0f6ae6c23388?dmode=source
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/


.