Re: Windows forms with Transparent Backgrounds
- From: "Eric Renken" <EricRenken@xxxxxxxxxxxxxxxx>
- Date: Tue, 24 Apr 2007 16:18:34 -0400
My computer (Windows XP) is set to 32-bit and it is working, and it works on
Vista at 32-bit also, but on the other XP machines you are correct it seems
to work below 32-bit mode.
I wonder why it is working correctly on my dev box (Windows XP) at 32-bit.
The work around at
http://support.microsoft.com/default.aspx?scid=kb;en-us;822495 doesn't work.
When I do this I end up seeing the background color for the form, and you
can't set the Background Color of a form to transparent if you do you get a
nice runtime error.
Eric
"Alberto Poblacion" <earthling-quitaestoparacontestar@xxxxxxxxxxxxx> wrote
in message news:uxfmZPqhHHA.4704@xxxxxxxxxxxxxxxxxxxxxxx
"Eric Renken" <EricRenken@xxxxxxxxxxxxxxxx> wrote in message
news:O7j1TKphHHA.4132@xxxxxxxxxxxxxxxxxxxxxxx
Well I seem to have an interesting problem. I have an application that
where I am setting the BackgroundImage and the TransparencyKey set in
code. These are both set after the InitializeComponent() in the
constructor of the form. This works great on my computer Windows XP Pro;
however on some other computer the TransparenecyKey isn't working and you
see the horrible green color that shouldn't be there. This doesn't
happen on all machines just some. I even went as far as pulling the
TransparenacyColor from a single pixel from the image at run time so I
could make sure I was getting the exact color.
Probably, the computers where it is failing have the video adapter set
to 32-bit color, while those where it is working are set to 24 bits or
less. It is a documented bug of the TransparencyKey (not working at more
that 24 bits of color depth).
.
- Follow-Ups:
- Re: Windows forms with Transparent Backgrounds
- From: Alberto Poblacion
- Re: Windows forms with Transparent Backgrounds
- References:
- Windows forms with Transparent Backgrounds
- From: Eric Renken
- Re: Windows forms with Transparent Backgrounds
- From: Alberto Poblacion
- Windows forms with Transparent Backgrounds
- Prev by Date: Re: GC.Collect can be trusted?
- Next by Date: Re: GC.Collect can be trusted?
- Previous by thread: Re: Windows forms with Transparent Backgrounds
- Next by thread: Re: Windows forms with Transparent Backgrounds
- Index(es):
Relevant Pages
|