Click here to Skip to main content
Click here to Skip to main content

Transparent Splash Screen

, 13 Jan 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
Creating a transparent Splash Screen - like the one used by Adobe.


Anyone interested in making a transparent splash screen? Like the one used by Adobe? This one was done by rendering PNG files that use Alpha. Inluded in the download, you will find a full example using Visual Basic .NET 2003. I'm using embedded resources for the image... I have installed and run this project correctly on Windows 98, XP, 2000.

Here are the two most important functions to use inside your splash screen form:

Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
    ' Do nothing here!
End Sub

Protected Overrides Sub OnPaintBackground(
    ByVal pevent As System.Windows.Forms.PaintEventArgs)
    Dim gfx As dra.Graphics = pevent.Graphics
    gfx.DrawImage(IMA.imaSplashScreen, New dra.Rectangle(0, 0, Me.Width, Me.Height))
End Sub

P.S. This is a very easy way to accomplish this, without using API calls and such messy stuff like that. You should be able to make splash screens and About boxes like the one I have used in my project.



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Web Developer
United States United States
Just another programmer trying to figure it all out. Big Grin | :-D


Comments and Discussions

QuestionHope u can help me PinmemberShashidharreddy22-Jan-06 23:38 
AnswerRe: Hope u can help me PinmemberDameonBlack23-Jan-06 5:26 
JokeRe: Hope u can help me Pinmemberfadee4-Apr-07 8:52 
QuestionBlack Background PinmemberLegandir16-Jan-06 12:21 
AnswerRe: Black Background PinmemberDameonBlack16-Jan-06 16:36 
GeneralRe: Black Background PinmemberLegandir17-Jan-06 7:26 
AnswerRe: Black Background Pinmembercycnus24-May-06 17:41 
AnswerRe: Black Background Pinmemberehoang31-Jul-07 10:10 
My splash screen was created in VS 2003 and converted to 2005. When I added in the code for transparency, I got the black background also. Comparing the design code line by line, it was exactly the same. I ended up recreating the splash screen in VS 2005 and it works perfectly.

Great code!!!

Thanks! Smile | :)
GeneralAbout the actuall program Pinsussper-i18-Jun-05 3:03 
GeneralRe: About the actuall program PinmemberDameonBlack18-Jun-05 11:56 
GeneralRe: About the actuall program PinmemberDameonBlack18-Jun-05 12:03 
GeneralRe: About the actuall program Pinmemberper-i20-Jun-05 12:00 
GeneralTransparency and fading form Pinmemberdaniel_l24-Apr-05 23:16 
GeneralRe: Transparency and fading form PinsussAnonymous25-Apr-05 4:22 
QuestionHow do i do this using c? PinmemberKalamatee2-Oct-04 7:24 
AnswerRe: How do i do this using c? PinmemberDameonBlack2-Oct-04 12:53 
GeneralRe: How do i do this using c? Pinmemberfodasse11-Jan-06 10:36 
GeneralRe: How do i do this using c#? PinmemberDameonBlack12-Jan-06 4:55 
GeneralProblem!... PinmemberMurat YILDIZ30-Aug-04 5:07 
GeneralRe: Problem!... PinsussAnonymous30-Aug-04 6:18 
GeneralRe: Problem!... Pinmemberwebbc16-Jan-06 8:10 
QuestionRe: Problem!... Pinmembereditaliasrl19-Jan-06 2:49 
AnswerRe: Problem!... Pinmemberfadee22-Mar-07 23:27 
QuestionWhat program created the graphic? Pinmembermistert00630-Jul-04 9:00 
AnswerRe: What program created the graphic? PinmemberDameonBlack30-Jul-04 9:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150414.1 | Last Updated 13 Jan 2006
Article Copyright 2004 by DameonBlack
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid