c#设置button透明

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、在属性栏设置,如下图:

 

posted @ 2017-09-24 16:06  天意天雨  阅读(7755)  评论(3编辑  收藏  举报