C# Transparent Form Problem

  • Thread starter Thread starter SeC
  • Start date Start date
S

SeC

Hello.
I have a problem with transparent form. I set TransparentKey to pink,
then in OnPaint I draw form background (some areas are pink in bitmaps
I use to compose). All is OK, form is transparent in place where pink
is. Problem is that sometimes, that "pink" is visible on form and
there's no transparency. It happens on other PC or when some other
program is run in background (movie player for example). Anyone know
solution to this? OR maybe some other way to have form transparent,
without using Region (I have complex shape on form and its generated
runtime because I need ability to resize form). I've seen Miranda have
nice UI (nicer plugin IIRC) with alpha-blened corners. I found this
article http://www.codeproject.com/cs/media/perpxalpha_sharp.asp - but
it lacks control support. Thanks for any help :)
 
are you sure of the pinkness of your bitmap?
maybe pink if FF8080 and sometimes, on your bitmap the color is FF7f81 for
example?
it happens a lot when you create the bitmap using anti aliasing drawing
operation....

--
Regards,
Lloyd Dupont
NovaMind Software
Mind Mapping at its best
www.nova-mind.com
 
Back
Top