Click here to Skip to main content
15,881,882 members
Articles / Programming Languages / Visual Basic
Article

Transparent Splash Screen

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

VB
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)


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





MCP, MCSD & MCAD

Comments and Discussions

 
AnswerRe: How to deal with .NET framework load delay [modified] Pin
anotherdotnetguy4-Jul-06 23:10
anotherdotnetguy4-Jul-06 23:10 
GeneralRe: How to deal with .NET framework load delay Pin
NVoli1-Oct-06 15:32
NVoli1-Oct-06 15:32 
GeneralRe: How to deal with .NET framework load delay Pin
anotherdotnetguy1-Oct-06 22:14
anotherdotnetguy1-Oct-06 22:14 
GeneralRe: How to deal with .NET framework load delay Pin
me@vbman.com25-May-07 20:31
me@vbman.com25-May-07 20:31 
GeneralRe: How to deal with .NET framework load delay Pin
anotherdotnetguy25-May-07 20:50
anotherdotnetguy25-May-07 20:50 
QuestionWater Script ?????? Good But!!!! Pin
cadi200513-Apr-06 15:26
cadi200513-Apr-06 15:26 
AnswerRe: Water Script ?????? Good But!!!! Pin
DameonBlack13-Apr-06 18:23
DameonBlack13-Apr-06 18:23 
GeneralProblem when image behind background change Pin
cyrare14-Mar-06 3:15
cyrare14-Mar-06 3:15 
GeneralRe: Problem when image behind background change Pin
DameonBlack14-Mar-06 7:24
DameonBlack14-Mar-06 7:24 
Generalvb doesn't find the png file Pin
Quiche8826-Jan-06 4:29
Quiche8826-Jan-06 4:29 
GeneralRe: vb doesn't find the png file Pin
DameonBlack26-Jan-06 4:35
DameonBlack26-Jan-06 4:35 
GeneralRe: vb doesn't find the png file Pin
Quiche8826-Jan-06 4:37
Quiche8826-Jan-06 4:37 
GeneralRe: vb doesn't find the png file Pin
DameonBlack26-Jan-06 4:46
DameonBlack26-Jan-06 4:46 
GeneralRe: vb doesn't find the png file Pin
Quiche8826-Jan-06 4:56
Quiche8826-Jan-06 4:56 
GeneralRe: vb doesn't find the png file Pin
DameonBlack26-Jan-06 5:10
DameonBlack26-Jan-06 5:10 
GeneralRe: vb doesn't find the png file Pin
Quiche8826-Jan-06 5:18
Quiche8826-Jan-06 5:18 
GeneralRe: vb doesn't find the png file Pin
DameonBlack26-Jan-06 5:35
DameonBlack26-Jan-06 5:35 
GeneralRe: vb doesn't find the png file Pin
DameonBlack26-Jan-06 7:01
DameonBlack26-Jan-06 7:01 
GeneralRe: vb doesn't find the png file Pin
Quiche8826-Jan-06 7:05
Quiche8826-Jan-06 7:05 
QuestionHope u can help me Pin
Shashidharreddy22-Jan-06 22:38
Shashidharreddy22-Jan-06 22:38 
AnswerRe: Hope u can help me Pin
DameonBlack23-Jan-06 4:26
DameonBlack23-Jan-06 4:26 
JokeRe: Hope u can help me Pin
fadee4-Apr-07 7:52
fadee4-Apr-07 7:52 
QuestionBlack Background Pin
Legandir16-Jan-06 11:21
Legandir16-Jan-06 11:21 
AnswerRe: Black Background Pin
DameonBlack16-Jan-06 15:36
DameonBlack16-Jan-06 15:36 
GeneralRe: Black Background Pin
Legandir17-Jan-06 6:26
Legandir17-Jan-06 6:26 

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.