Home All Groups Group Topic Archive Search About

Fade out problem on a form with irregular backgroud image

Author
29 Aug 2006 7:14 AM
Cylix
I have a form with a irregular background image, let say a circle.
I would like the form shows and that fade out and close slowly.

I have already done the fade out part by the timmer to set the form
opacity.

However, I set the transparent key of the form be white in color,
when the form start to fade out, The white part of the form is not
transparent anymore,
How can the white color part of the form keep transparent?

Please help!! Thank you.

Author
29 Aug 2006 9:52 AM
Peter Proost
Hi set the following styles in the constructor of the form:

'Add any initialization after the InitializeComponent() call
Me.SetStyle(ControlStyles.DoubleBuffer Or
ControlStyles.AllPaintingInWmPaint, True)
Me.UpdateStyles()

Normaly it should work and look smooth.

Hope this helps,

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)

Show quoteHide quote
"Cylix" <cylix2***@gmail.com> schreef in bericht
news:1156835697.770172.325880@i3g2000cwc.googlegroups.com...
> I have a form with a irregular background image, let say a circle.
> I would like the form shows and that fade out and close slowly.
>
> I have already done the fade out part by the timmer to set the form
> opacity.
>
> However, I set the transparent key of the form be white in color,
> when the form start to fade out, The white part of the form is not
> transparent anymore,
> How can the white color part of the form keep transparent?
>
> Please help!! Thank you.
>