Home All Groups Group Topic Archive Search About
Author
10 Jun 2009 1:48 PM
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.

Author
11 Jun 2009 10:48 PM
Herfried K. Wagner [MVP]
"Mattps" <matt.standing@community.nospam> schrieb:
>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>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Are all your drivers up to date? click for free checkup

Author
12 Jun 2009 8:30 AM
Mattps
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.

Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "Mattps" <matt.standing@community.nospam> schrieb:
> >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>
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
>
>
Author
24 Jun 2009 3:57 PM
Mattps
The example givin in the MS article:

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

States that I need to "Render the color key bits with GDI instead of with
System.Drawing"

The example give is c#. Does anyone know who to achieve this in VB.NET?

Matt

Show quoteHide quote
"Mattps" wrote:

> 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.
>
> "Herfried K. Wagner [MVP]" wrote:
>
> > "Mattps" <matt.standing@community.nospam> schrieb:
> > >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>
> >
> > --
> >  M S   Herfried K. Wagner
> > M V P  <URL:http://dotnet.mvps.org/>
> >  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
> >
> >

Bookmark and Share