Form transparency

  • Thread starter Thread starter Mattps
  • Start date Start date
M

Mattps

I have built a project in .Net Express 2008 that uses the form transparency
key. This works fine when I build, publish and install on the machine that I
wrote the project on. However, if I try and install on any other machine the
transparency is replaced by the mask colour I have selected.

All the required .NET framework versions and service packs are installed.
This in on Windows XP SP2.
 
Mattps said:
I have built a project in .Net Express 2008 that uses the form transparency
key. This works fine when I build, publish and install on the machine that
I
wrote the project on. However, if I try and install on any other machine
the
transparency is replaced by the mask colour I have selected.

All the required .NET framework versions and service packs are installed.
This in on Windows XP SP2.

Not sure if this still applies to VS 2008, but it's worth a look:

BUG: The TransparencyKey property is not effective for Windows forms if the
color depth of the monitor is set to a value that is greater than 24-bit
<URL:http://support.microsoft.com/kb/822495/en-us>
 
Thanks Herfried,

My colour depth is set to 32 bit. Change the colour depth on other
workstations makes no difference. I did find this article about rendering the
colour match bit using GDI, not System.Drawing:

http://support.microsoft.com/kb/952944/en-us

However, it only shows the example in C#, not Visual Studio.
 
Back
Top