Click here to Skip to main content
15,301,414 members
Articles / Programming Languages / Visual Basic
Posted 23 Mar 2004


135 bookmarked

Transparent Splash Screen

Rate me:
Please Sign up or sign in to vote.
4.86/5 (26 votes)
13 Jan 2006CPOL
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

QuestionBlack border on Alpha value PNG image Pin
javageget21-Oct-11 21:14
Memberjavageget21-Oct-11 21:14 
GeneralRe: Black border on Alpha value PNG image Pin
mastersil8715-Jul-12 23:54
Membermastersil8715-Jul-12 23:54 
GeneralMy vote of 3 Pin
sumeshSV3-Jul-11 7:54
MembersumeshSV3-Jul-11 7:54 
GeneralNice Pin
vbfengshui9-Feb-11 8:54
Membervbfengshui9-Feb-11 8:54 
GeneralCheers Pin
matt335-Aug-10 2:08
Membermatt335-Aug-10 2:08 
GeneralThis sample does not show how to create a splash screen Pin
AliasGoesHere19-Nov-07 3:44
MemberAliasGoesHere19-Nov-07 3:44 
AnswerThe sample given is for both a splash screen and an about box. Pin
DameonBlack19-Nov-07 11:57
MemberDameonBlack19-Nov-07 11:57 
GeneralKISS Pin
Marco Ensing31-May-07 14:17
MemberMarco Ensing31-May-07 14:17 
GeneralProblem with the VB 2005 Pin
eclisia24-Apr-07 22:05
Membereclisia24-Apr-07 22:05 
GeneralRe: Problem with the VB 2005 Pin
eclisia24-Apr-07 23:19
Membereclisia24-Apr-07 23:19 
QuestionCan anyone help? Pin
LilMoke24-Jan-07 6:24
MemberLilMoke24-Jan-07 6:24 
AnswerRe: Can anyone help? Pin
DameonBlack24-Jan-07 11:45
MemberDameonBlack24-Jan-07 11:45 
GeneralVery nice, but Almost it would seem Pin
tkiykioglu3-Jul-06 13:38
Membertkiykioglu3-Jul-06 13:38 
GeneralRe: Very nice, but Almost it would seem Pin
DameonBlack24-Jan-07 11:43
MemberDameonBlack24-Jan-07 11:43 
GeneralRe: Very nice, but Almost it would seem Pin
fadee22-Mar-07 22:25
Memberfadee22-Mar-07 22:25 
GeneralRe: Very nice, but Almost it would seem Pin
Eladisimo17-Jul-07 11:27
MemberEladisimo17-Jul-07 11:27 
QuestionHow to deal with .NET framework load delay [modified] Pin
anotherdotnetguy21-Jun-06 5:42
Memberanotherdotnetguy21-Jun-06 5:42 
AnswerRe: How to deal with .NET framework load delay [modified] Pin
anotherdotnetguy4-Jul-06 23:10
Memberanotherdotnetguy4-Jul-06 23:10 
GeneralRe: How to deal with .NET framework load delay Pin
NVoli1-Oct-06 15:32
MemberNVoli1-Oct-06 15:32 
GeneralRe: How to deal with .NET framework load delay Pin
anotherdotnetguy1-Oct-06 22:14
Memberanotherdotnetguy1-Oct-06 22:14 
GeneralRe: How to deal with .NET framework load delay Pin
me@vbman.com25-May-07 20:31
Memberme@vbman.com25-May-07 20:31 
GeneralRe: How to deal with .NET framework load delay Pin
anotherdotnetguy25-May-07 20:50
Memberanotherdotnetguy25-May-07 20:50 
QuestionWater Script ?????? Good But!!!! Pin
cadi200513-Apr-06 15:26
Membercadi200513-Apr-06 15:26 
AnswerRe: Water Script ?????? Good But!!!! Pin
DameonBlack13-Apr-06 18:23
MemberDameonBlack13-Apr-06 18:23 
GeneralProblem when image behind background change Pin
cyrare14-Mar-06 3:15
Membercyrare14-Mar-06 3:15 

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.