Fade out problem on a form with irregular backgroud image

  • Thread starter Thread starter Cylix
  • Start date Start date
C

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.
 
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
 
Back
Top