【C#学习】button:只显示图片

第一步:设置按钮背景图片,并且图片随按钮大小变化

【C#学习】button:只显示图片_第1张图片

第二步:设置按钮使之只显示图片

button1.FlatStyle = FlatStyle.Flat;//style
   button1.ForeColor = Color.Transparent;//前景
   button1.BackColor = Color.Transparent;//去背景
 button1.FlatAppearance.BorderSize = 0;//去边线
 //button1.FlatAppearance.MouseOverBackColor = Color.Transparent;//鼠标经过
//button1.FlatAppearance.MouseDownBackColor = Color.Transparent;//鼠标按下

你可能感兴趣的:(编程技术,c#,学习,开发语言)