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
 
* "Maher K. Al-Jendasi said:
Is there any equivelent to VB 6.0 button control
MaskColor property in .NET button??

Please do not multipost.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top