Click here to Skip to main content
Click here to Skip to main content

Transparent Splash Screen

By , 13 Jan 2006
 

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)

About the Author

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

 

 
MCP, MCSD & MCAD

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionBlack border on Alpha value PNG imagememberjavageget21 Oct '11 - 21:14 
GeneralRe: Black border on Alpha value PNG image [modified]membermastersil8715 Jul '12 - 23:54 
GeneralMy vote of 3membersumeshMCA3 Jul '11 - 7:54 
GeneralNicemembervbfengshui9 Feb '11 - 8:54 
GeneralCheersmembermatt335 Aug '10 - 2:08 
GeneralThis sample does not show how to create a splash screenmemberAliasGoesHere19 Nov '07 - 3:44 
AnswerThe sample given is for both a splash screen and an about box.memberDameonBlack19 Nov '07 - 11:57 
GeneralKISSmemberMarco Ensing31 May '07 - 14:17 
GeneralProblem with the VB 2005membereclisia24 Apr '07 - 22:05 
GeneralRe: Problem with the VB 2005membereclisia24 Apr '07 - 23:19 

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

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