I want to make a splash screen that looks sort of like the Adobe Creative Suite ones.
They have no frame, with rounded edges and a nice drop shadow surrounding them. (see my picture to view my design)
I have set the frame transparency key to "lime", but when i put my picture in, the picture box disallows the:
Code:
picbox.color = color.transparent
function, saying that it isn't a valid color option. I have checked in the MSDN files, and located a thread telling me that this is a .NET bug, and there may be ways of getting around it by using third party functions.
Does anyone know how i can make it, or how this can be done.
Cheers
dkeegh
P.S. Before anyone says it: The image i am using is in PNG and GIF. Both DO have transparent backgrounds
__________________
Huh? What? Noob? Did someone just say my name?
No need to use a picturebox.
Just set the BackgroundImage property of the form to your picture, then set the TransparencyKey property of the form to the color you want to be transparent.
However, if for some reason you do need to use a pictureBox, just set the TransparenyKey property of the form to the color you want to be transparent in the pictureBox.
I believe the point that Machaira was trying to make is that GIFs aren't a good idea because the compression used could change the color. A PNG should work, but a BMP is not compressed, so you don't have to worry. I'm not a graphics guy so I'm not sure if PNG is compressed.
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe