Form.TransparencyKey doesn't work...

V

VMI

I have a Windows Form and, for its BackgroundImage, I put an all-white
bitmap (opened mspaint, and immediately saved as bmp). Then I set the
TransparencyKey property to White (I also added it in the Form_Load). For
some reason I still can't see "through" the Form. Am I doing something
wrong? The RightToLeftLayout property is set to False.
On the other hand, if I remove the background image and set Form.BackColor
to White, it'll work.
I'm using VS 2005.

Thanks.
 
A

Alberto Poblacion

VMI said:
I have a Windows Form and, for its BackgroundImage, I put an all-white
bitmap (opened mspaint, and immediately saved as bmp). Then I set the
TransparencyKey property to White (I also added it in the Form_Load). For
some reason I still can't see "through" the Form. Am I doing something
wrong? The RightToLeftLayout property is set to False.
On the other hand, if I remove the background image and set Form.BackColor
to White, it'll work.

Is your display set to more than 24 bits of color? If that's your case,
there's a documented bug that prevents the TransparencyKey from working. See
knowledge base article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;822495 .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top