Click here to Skip to main content
12,952,159 members (53,340 online)
Click here to Skip to main content
Add your own
alternative version


132 bookmarked
Posted 23 Mar 2004

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


You may also be interested in...

Comments and Discussions

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 
Sounds like a good idea - give it a try and let us know how it worked for you.

Some sample code would be great!

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