c#设置button透明

1、使用代码进行设置:

this.button_welcom_login.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.button_welcom_login.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
            this.button_welcom_login.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;//设置透明

 

2、在属性栏设置,如下图:

c#设置button透明

c#设置button透明

 

相关文章: