Fade out problem on a form with irregular backgroud image

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.
 
P

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top