Transparency or Opacity of a Single Control

D

David Hearn

I would like to have a button or image on one of my forms that has an
opacity of about 50% and then fades in as you pass your mouse onto it,
kind of like the login buttons in Windows XP. Any way of doing this?

Thanks in advance!
 
H

Herfried K. Wagner [MVP]

Hello,

David Hearn said:
I would like to have a button or image on one of my forms that has an
opacity of about 50% and then fades in as you pass your mouse onto it,
kind of like the login buttons in Windows XP. Any way of doing this?

You'll have to write that on your own (UserControl, background picture,
foreground picture). GDI+ provides method to draw pictures
semi-transparently.
 

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

Top