C#中如何添加MouseEnter事件
2016-08-30 · 知道合伙人软件行家
关注
展开全部
this.panel1.MouseEnter += new System.EventHandler(this.panel1_MouseEnter);
private void panel1_MouseEnter(object sender, System.EventArgs e)
{
// Update the mouse event label to indicate the MouseEnter event occurred.
label1.Text = sender.GetType().ToString() + ": MouseEnter";
}
https://msdn.microsoft.com/zh-cn/library/system.windows.forms.control.mouseenter.aspx
private void panel1_MouseEnter(object sender, System.EventArgs e)
{
// Update the mouse event label to indicate the MouseEnter event occurred.
label1.Text = sender.GetType().ToString() + ": MouseEnter";
}
https://msdn.microsoft.com/zh-cn/library/system.windows.forms.control.mouseenter.aspx
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询