Opacity for management

Can translucent control be made?

+7
source share
2 answers

If the control supports transparent backgrounds, you can use Color.FromArgb () to set the translucent color:

button1.BackColor = Color.FromArgb(100, Color.Red); 

Depending on how you want this to work, you have changed the alpha value (from 0 to 255).

+1
source

The direct answer to your question is "No."

WinForms supports transparency at the form level ( Form.Opacity ), but not controls. In cases where this was important, I used layered forms.

If this feature is important, and changing the framework is an option, WPF supports translucent controls.

+1
source

All Articles