Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Interface and Graphics > Transparent Splash Screens


Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-2004, 11:55 PM
dkeegh's Avatar
dkeegh dkeegh is offline
Freshman
 
Join Date: Aug 2003
Location: Victoria, Australia
Posts: 44
Question Transparent Splash Screens




I want to make a splash screen that looks sort of like the Adobe Creative Suite ones.

They have no frame, with rounded edges and a nice drop shadow surrounding them. (see my picture to view my design)

I have set the frame transparency key to "lime", but when i put my picture in, the picture box disallows the:

Code:
picbox.color = color.transparent
function, saying that it isn't a valid color option. I have checked in the MSDN files, and located a thread telling me that this is a .NET bug, and there may be ways of getting around it by using third party functions.

Does anyone know how i can make it, or how this can be done.

Cheers



dkeegh

P.S. Before anyone says it: The image i am using is in PNG and GIF. Both DO have transparent backgrounds
Attached Images
File Type: jpg 1.jpg (36.5 KB, 53 views)
__________________
Huh? What? Noob? Did someone just say my name?
Reply With Quote
  #2  
Old 04-05-2004, 07:09 AM
Machaira's Avatar
Machaira Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

Try saving it as a regular bitmap.
Reply With Quote
  #3  
Old 04-14-2004, 12:05 AM
dkeegh's Avatar
dkeegh dkeegh is offline
Freshman
 
Join Date: Aug 2003
Location: Victoria, Australia
Posts: 44
Default

Quote:
Originally Posted by Machaira
Try saving it as a regular bitmap.
this will not do anything, as it is not the image that is the problem but the picturebox componant
__________________
Huh? What? Noob? Did someone just say my name?
Reply With Quote
  #4  
Old 04-14-2004, 02:45 AM
Paszt Paszt is offline
Newcomer
 
Join Date: Feb 2004
Location: Raleigh, NC
Posts: 23
Default

No need to use a picturebox.
Just set the BackgroundImage property of the form to your picture, then set the TransparencyKey property of the form to the color you want to be transparent.

However, if for some reason you do need to use a pictureBox, just set the TransparenyKey property of the form to the color you want to be transparent in the pictureBox.

I believe the point that Machaira was trying to make is that GIFs aren't a good idea because the compression used could change the color. A PNG should work, but a BMP is not compressed, so you don't have to worry. I'm not a graphics guy so I'm not sure if PNG is compressed.

-Stephen Paszt
Reply With Quote
  #5  
Old 04-14-2004, 10:32 PM
dkeegh's Avatar
dkeegh dkeegh is offline
Freshman
 
Join Date: Aug 2003
Location: Victoria, Australia
Posts: 44
Default

thanks alot, ill see if that works, as my sig says i am a noob... but ill check and see anyway (BTW i am using a PNG with transparency)
__________________
Huh? What? Noob? Did someone just say my name?
Reply With Quote
  #6  
Old 04-15-2004, 05:33 PM
killem killem is offline
Newcomer
 
Join Date: Apr 2004
Posts: 1
Default

that will not work
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
saving a picture file ByteMe Interface and Graphics 9 03-08-2004 11:42 AM
Transparent form + Transparent image FoodStalker General 2 06-15-2003 08:02 AM
Splash screens LiquidPenguin General 8 01-24-2003 12:46 PM
WebBrowser control and Splash Screens DarkRaider General 1 04-30-2002 12:59 AM
splash screens scott911 General 2 10-24-2001 02:55 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->