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

  • Thread starter Thread starter Ken Allen
  • Start date Start date
K

Ken Allen

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?
 
[email protected]:


Is there a way to make it work in 32 bit

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
 
Ken Allen said:
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?

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