Button MaskColor Property

  • Thread starter Thread starter Maher K. Al-Jendasi
  • Start date Start date
M

Maher K. Al-Jendasi

Hello All,

Is there any equivelent to VB 6.0 button control
MaskColor property in .NET button??


Thanks in advance




Maher K. Al-Jendasi
(e-mail address removed)
 
Hi,

The form class has the transparencykey property which will make the
a color transparent. The button does not have that. The bitmap class has
maketransparent method will do the same for a bitmap. I guess you could load
an image into a bitmap variable and use the maketransparent method. Set the
buttons image to the bitmap.

bmap.MakeTransparent(Color.Red)

Button1.Image = bmap

Ken
 
Back
Top