Click here to Skip to main content
11,641,708 members (56,348 online)
Click here to Skip to main content

Transparent Splash Screen

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

Introduction

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.

WaterScript.jpg

License

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

Share

About the Author

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





MCP, MCSD & MCAD

You may also be interested in...

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
sumeshMCA3-Jul-11 7:54
membersumeshMCA3-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 
GeneralRe: Problem when image behind background change Pin
DameonBlack14-Mar-06 7:24
memberDameonBlack14-Mar-06 7:24 
Generalvb doesn't find the png file Pin
Quiche8826-Jan-06 4:29
memberQuiche8826-Jan-06 4:29 
GeneralRe: vb doesn't find the png file Pin
DameonBlack26-Jan-06 4:35
memberDameonBlack26-Jan-06 4:35 
GeneralRe: vb doesn't find the png file Pin
Quiche8826-Jan-06 4:37
memberQuiche8826-Jan-06 4:37 
GeneralRe: vb doesn't find the png file Pin
DameonBlack26-Jan-06 4:46
memberDameonBlack26-Jan-06 4:46 
GeneralRe: vb doesn't find the png file Pin
Quiche8826-Jan-06 4:56
memberQuiche8826-Jan-06 4:56 
GeneralRe: vb doesn't find the png file Pin
DameonBlack26-Jan-06 5:10
memberDameonBlack26-Jan-06 5:10 
GeneralRe: vb doesn't find the png file Pin
Quiche8826-Jan-06 5:18
memberQuiche8826-Jan-06 5:18 
GeneralRe: vb doesn't find the png file Pin
DameonBlack26-Jan-06 5:35
memberDameonBlack26-Jan-06 5:35 
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 
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 
I'm going to take a guess on this one.

I would guess that changing the opacity would change the transparent colors making them no longer transparent. Instead of changing the opacity you may want to flip through a series of png images giving it the appearance of fading in and out. This is of course a lame way to do it but may be the only option.


Thanks,
Dameon Black

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
Web04 | 2.8.150731.1 | Last Updated 13 Jan 2006
Article Copyright 2004 by DameonBlack
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid