C#下面的MouseEnter事件和MouseLeave事件为什么不能真正触发,也就是语句下面是这样写,但不会弹出来
privatevoidlabel1_MouseEnter(objectsender,EventArgse){timer1.Stop();label1.Text="变化1"...
private void label1_MouseEnter(object sender, EventArgs e)
{
timer1.Stop();
label1.Text = "变化1";
}
private void label1_MouseLeave(object sender, EventArgs e)
{
timer1.Start();
} 展开
{
timer1.Stop();
label1.Text = "变化1";
}
private void label1_MouseLeave(object sender, EventArgs e)
{
timer1.Start();
} 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询