110,534
社区成员
发帖
与我相关
我的任务
分享
public SchoolButton()
{
this.FlatStyle = FlatStyle.Flat;//样式
this.ForeColor = Color.Transparent;//前景
this.BackColor = Color.Transparent;//去背景
this.FlatAppearance.BorderSize = 0;//去边线
this.BackgroundImageLayout = ImageLayout.Stretch;
//this.FlatAppearance.MouseOverBackColor = Color.Transparent;//鼠标经过
this.FlatAppearance.MouseDownBackColor = Color.Gray;//鼠标按下
InitializeComponent();
}
public SchoolButton(IContainer container)
{
container.Add(this);
InitializeComponent();
}