Solved

Tansparency in forms and fade effects in PNGs (VB .NET)...

Posted on 2004-04-04
5
319 Views
Last Modified: 2007-12-19
Hi all,
I have a form, which I've set to be transparent (using TransparencyKey). On that form I have a PNG image which has transparent areas and semi-transparent areas (a fade effect). The full transparent parts of the image are fine, but the fade effect is showing with the colour of the TransparencyKey behind it.

Please could someone shed some light on this topic.

Thanks in advance,
Ian
0
Comment
Question by:ianmarsden
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:KeefeJohnson
Comment Utility
Are you talking about Layered Windows / Transparency Color? If you post some of the code, I could take a look at it.
0
 

Author Comment

by:ianmarsden
Comment Utility
No code involved at the moment. Just a form with default BackColor, TransparencyKey set to the same colour (making the whole form transparent) and a PictureBox with the PNG.

This screen capture may make things more clear...
http://www11.brinkster.com/marsdene/aeb.png

Ian
0
 
LVL 2

Accepted Solution

by:
KeefeJohnson earned 125 total points
Comment Utility
I don't have .NET, so I can't help you there. If the TransparencyKey is using Layered Windows, I don't think partial transparency is possible.
0
 

Author Comment

by:ianmarsden
Comment Utility
Okies. Thanks for your time anyway KeefeJohnson.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now