C#下面的MouseEnter事件和MouseLeave事件为什么不能真正触发,也就是语句下面是这样写,但不会弹出来
还有,button控件能使用MouseEnter事件和MouseLeave事件吗?privatevoidbutton2_MouseEnter(objectsender,E...
还有,button控件能使用MouseEnter事件和MouseLeave事件吗?
private void button2_MouseEnter(object sender, EventArgs e)
{
if (stage_Number == 1)
{
pictureBox1.Location = new System.Drawing.Point(72, 378);
label1.Location = new System.Drawing.Point(81, 387);
pictureBox1.Visible = true;
label1.Visible = true;
label1.Text = "同级别的较量!";
}
}
private void button2_MouseLeave(object sender, EventArgs e)
{
pictureBox1.Visible = false;
label1.Visible = false; 展开
private void button2_MouseEnter(object sender, EventArgs e)
{
if (stage_Number == 1)
{
pictureBox1.Location = new System.Drawing.Point(72, 378);
label1.Location = new System.Drawing.Point(81, 387);
pictureBox1.Visible = true;
label1.Visible = true;
label1.Text = "同级别的较量!";
}
}
private void button2_MouseLeave(object sender, EventArgs e)
{
pictureBox1.Visible = false;
label1.Visible = false; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询