Transparency?

EZCheeZe

Member
Joined
Dec 12, 2002
Messages
7
Im working on a fairly simple project, and there is only one thibg I cant get to work correcdtly. I have 3 labels, each with an image in it, that overlap. I set the background to transparent (Windows.yaddayadda.transparent) but the background is still the system gray color. My entire project depends on this, so any help will be welcome.
 
When using transparent colours on controls, I think the best youll get is the actual form background (i.e. that gray colour) showing through. To achieve proper transparency effects, youll want to be painting everything yourself, using GDI+.

This isnt quite as daunting as it sounds, the documentation is quite good and there are a lot of samples out there. If you want to draw three images that have transparent sections, it should be quite trivial. It is a matter of overriding the forms OnPaint method (or responding to the Paint event) and doing all your drawing in there.
 
Maybe I should explain a little more. I have 3 image lists. Each labels image (part of the image list) is determined by a scrollbars position, and is constantly changing.
 
Back
Top