Connecting Tech Pros Worldwide Forums | Help | Site Map

Is there a way to make nonrectangular forms work with 32 bit color

Ken Allen
Guest
 
Posts: n/a
#1: Nov 20 '05
I just upgraded to Visual Studio .NET and I'm impressed
with the ease you can do some otherwise time consuming
tasks. I've noticed that when making nonrectangular forms
using the transparencykey property that it doesn't work
in 32 bit mode. Is there a way to make it work in 32 bit
or would I have to write my own method for transparency
to get around this?

Chris Dunaway
Guest
 
Posts: n/a
#2: Nov 20 '05

re: Is there a way to make nonrectangular forms work with 32 bit color


"Ken Allen" <kallen19918@earthlink.net> wrote in news:12ad01c38901$4a5bd210
$a001280a@phx.gbl:


[color=blue]
> Is there a way to make it work in 32 bit
>[/color]

You can use the GraphicsPath class to create a irregular shape, use that
shape to create a region using the Region class and then set the Form's
region property to get the form shaped like you want.

You should then still be able to paint onto the form as you like.

Chris
Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#3: Nov 20 '05

re: Is there a way to make nonrectangular forms work with 32 bit color


"Ken Allen" <kallen19918@earthlink.net> scripsit:[color=blue]
> I just upgraded to Visual Studio .NET and I'm impressed
> with the ease you can do some otherwise time consuming
> tasks. I've noticed that when making nonrectangular forms
> using the transparencykey property that it doesn't work
> in 32 bit mode. Is there a way to make it work in 32 bit
> or would I have to write my own method for transparency
> to get around this?[/color]

<http://www.bobpowell.net/region_from_bitmap.htm>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Closed Thread