Click here to Skip to main content
13,201,940 members (74,496 online)
Click here to Skip to main content
Add your own
alternative version


133 bookmarked
Posted 23 Mar 2004

Transparent Splash Screen

, 13 Jan 2006
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


You may also be interested in...

Comments and Discussions

GeneralRe: vb doesn't find the png file Pin
DameonBlack26-Jan-06 7:01
memberDameonBlack26-Jan-06 7:01 
GeneralRe: vb doesn't find the png file Pin
Quiche8826-Jan-06 7:05
memberQuiche8826-Jan-06 7:05 
QuestionHope u can help me Pin
Shashidharreddy22-Jan-06 22:38
memberShashidharreddy22-Jan-06 22:38 
AnswerRe: Hope u can help me Pin
DameonBlack23-Jan-06 4:26
memberDameonBlack23-Jan-06 4:26 
JokeRe: Hope u can help me Pin
fadee4-Apr-07 7:52
memberfadee4-Apr-07 7:52 
QuestionBlack Background Pin
Legandir16-Jan-06 11:21
memberLegandir16-Jan-06 11:21 
AnswerRe: Black Background Pin
DameonBlack16-Jan-06 15:36
memberDameonBlack16-Jan-06 15:36 
GeneralRe: Black Background Pin
Legandir17-Jan-06 6:26
memberLegandir17-Jan-06 6:26 
Hi, thanks for your help.

It's ok now, the transparency of the form was the problem.

I had changed it when working on the program before. Although I'd put the default back in the properties window, the fact that it was still mentioned in to the Windows form generated code caused the problem.

AnswerRe: Black Background Pin
cycnus24-May-06 16:41
membercycnus24-May-06 16:41 
AnswerRe: Black Background Pin
ehoang31-Jul-07 9:10
memberehoang31-Jul-07 9:10 
GeneralAbout the actuall program Pin
per-i18-Jun-05 2:03
sussper-i18-Jun-05 2:03 
GeneralRe: About the actuall program Pin
DameonBlack18-Jun-05 10:56
memberDameonBlack18-Jun-05 10:56 
GeneralRe: About the actuall program Pin
DameonBlack18-Jun-05 11:03
memberDameonBlack18-Jun-05 11:03 
GeneralRe: About the actuall program Pin
per-i20-Jun-05 11:00
memberper-i20-Jun-05 11:00 
GeneralTransparency and fading form Pin
daniel_l24-Apr-05 22:16
memberdaniel_l24-Apr-05 22:16 
GeneralRe: Transparency and fading form Pin
Anonymous25-Apr-05 3:22
sussAnonymous25-Apr-05 3:22 
QuestionHow do i do this using c? Pin
Kalamatee2-Oct-04 6:24
memberKalamatee2-Oct-04 6:24 
AnswerRe: How do i do this using c? Pin
DameonBlack2-Oct-04 11:53
memberDameonBlack2-Oct-04 11:53 
GeneralRe: How do i do this using c? Pin
fodasse11-Jan-06 9:36
memberfodasse11-Jan-06 9:36 
GeneralRe: How do i do this using c#? Pin
DameonBlack12-Jan-06 3:55
memberDameonBlack12-Jan-06 3:55 
GeneralProblem!... Pin
Murat YILDIZ30-Aug-04 4:07
memberMurat YILDIZ30-Aug-04 4:07 
GeneralRe: Problem!... Pin
Anonymous30-Aug-04 5:18
sussAnonymous30-Aug-04 5:18 
GeneralRe: Problem!... Pin
webbc16-Jan-06 7:10
memberwebbc16-Jan-06 7:10 
QuestionRe: Problem!... Pin
editaliasrl19-Jan-06 1:49
membereditaliasrl19-Jan-06 1:49 
AnswerRe: Problem!... Pin
fadee22-Mar-07 22:27
memberfadee22-Mar-07 22:27 

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

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

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