Transparent Background For User Controls on C#
Inorder to set the Transparent property to your user control,
Please add the following code in the Construtor of your code
// Setting the Control's Style Property
this.SetStyle(System.Windows.Forms.ControlStyles.SupportsTransparentBackColor,true);
//Set the Backcolor of the Property to Transparent
this.Backcolor=System.Drawing.Color.Transparent;
No comments:
Post a Comment