Hi, we are trying to create in VB.NET CF an image that acts as a button with
transparency as part of it (i.e. it is a rounded button). This is created as
a .gif file with a transparent mask.

However when included in a PictureBox control the transparency is lost when
displaying on the Pocket PC. There is a background image beneath the button
which is of changing colours. (otherwise the button image exterior could be
coloured the same as the background.)

Thanks in advance,

Richard

Re: PictureBox Image Transparency Fail by Peter

Peter
Fri Nov 12 11:35:39 CST 2004

This is unsupported in .NETCF. A workaround would be to create a
non-rectangular window using some Platform Invoke - Alex wrote an excellent
article here:-
http://www.opennetcf.org/PermaLink.aspx?guid=f0abe92f-6e94-4a19-b0e3-11d1bdb3c9f0

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"Rich B" <rich4444@barrysworld.com> wrote in message
news:ulye8CKyEHA.2776@TK2MSFTNGP10.phx.gbl...
> Hi, we are trying to create in VB.NET CF an image that acts as a button
> with transparency as part of it (i.e. it is a rounded button). This is
> created as a .gif file with a transparent mask.
>
> However when included in a PictureBox control the transparency is lost
> when displaying on the Pocket PC. There is a background image beneath the
> button which is of changing colours. (otherwise the button image exterior
> could be coloured the same as the background.)
>
> Thanks in advance,
>
> Richard
>
>
>
>