How to: Give Your Control a Transparent Background
In earlier versions of the .NET Framework, controls didn't support setting transparent backcolors without first setting the SetStyle method in the forms's constructor. In the current framework version, the backcolor for most controls can be set to Transparent in the Properties window at design time, or in code in the form's constructor.
Note
Windows Forms controls do not support true transparency. The background of a transparent Windows Forms control is painted by its parent.
Note
The Button control doesn't support a transparent backcolor even when the BackColor property is set to Transparent.
To give your control a transparent backcolor
- In the Properties window, choose the BackColor property and set it to Transparent
See also
.NET Desktop feedback
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for