日期:2014-05-17 浏览次数:20996 次
bool alreadyChanged = false;
private void labelCheck_MouseEnter(object sender, EventArgs e)
{
if (alreadyChanged == false)
{
this.Size = new Size(this.Width, this.Height + 25);
alreadyChanged = true;
}
}
private void labelCheck_MouseLeave(object sender, EventArgs e)
{
if (alreadyChanged == true)
{
this.Size = new Size(this.Width, this.Height - 25);
alreadyChanged = false;
}
}