Well, I'm trying to make a splash screen but one like Photoshop has. Not exactly, but similar. I Photoshopped a graphic with a sqare where I can put information, but the trouble is, the graphics which are not in the square. I left some WHITE space around the square and put some graphics on the outside of it. I saved the image and imported it into the form I made which is just a blank non-resizeable form. I was kinda hoping that setting the transparacy key to White would also work on the picture, but I was mistaken. It appears that the white border appears. If you can't visualise the splash I want to achieve, think along the lines of Adobe Acrobat.
What I want to know is, is it possible to make VB.NET exclude the white in my background image while not showing the form behind the image after the white is removed? I can't think of a solution, maybe you guys can help me. Thanks
Last edited by martw; Apr 21st, 2005 at 07:14 PM.
Reason: Resolved
If you set the Transparency key to white and the background color of the form to white you get an invisible form.
If you want your image to be transparent as well and this doesn't work for the image you can load the image as a bitmap and then make the bitmap transparent like this:
VB Code:
Dim MyBitmap As Bitmap = Image.FromFile("C:\t.bmp")
MyBitmap.MakeTransparent(Color.White)
'Then assign draw the image to the control in the form paint event or however you wish
I hope this helps,
In life you can be sure of only two things... death and taxes. I'll take death.
BTW I just went through creating a SplashScreen. Getting it to work like Adobe's is a B*$%h. You have to use a new thread. If you need help feel free to let me know.
In life you can be sure of only two things... death and taxes. I'll take death.
Thanks for the quick help But the result isn't quite what I intended. you see... It managed to get rid of the white, but what happened instead is that it basically but black where the white once was.
Maybe I'll jut post screen shots The thing is I'm not seeing any white.
Is:
Should:
What I did on "Should" is I removed the background so the white border is gone. But just for the picture you see so you know what I want to exclude. The whie is there in splash.bmp which is what I loaded.
The page which you gave the link to, well, I saved that page yesterday onto my comp. I just remembered now that I have it. Thanks again. This saved me a load of hassle and helps me learn some new stuff in the process.