Displaying a "transparent" splash sreen

E

Elp

Hi,

i am trying to display a picture with transparent areas as a splash screen
(i'd like to have something similar to the Acrobat Reader 6 splash). I've
tried to put my image in a picture box and play with the opacity property of
the form and the picture box with no luck so far: i can't manage to suppress
the form background.
Putting my picture as the background image of the form gives me some funny
results such as black areas instead of transparent areas.

Does anybody has an idea of the way to go to achieve that?

thanks
 
H

Herfried K. Wagner [MVP]

Elp said:
i am trying to display a picture with transparent areas as a splash screen
(i'd like to have something similar to the Acrobat Reader 6 splash). I've
tried to put my image in a picture box and play with the opacity property of
the form and the picture box with no luck so far: i can't manage to suppress
the form background.
Putting my picture as the background image of the form gives me some funny
results such as black areas instead of transparent areas.

Have a look at the 'GraphicsPath' and 'Region' classes. After creating
the 'GraphicsPath' with the desired shape, you can convert it to a
'Region' and assign the region to the form's 'Region' property.
 

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

Top