【发布时间】:2020-10-11 07:15:10
【问题描述】:
我正在尝试在 Mouse_Hover 上为 Button 编写代码
private void Button_MouseHover(object sender, EventArgs e){
Button b = (Button)sender;
toolTip1.Show("Click ME!!", b);
}
但是 toolTip1 没有显示!!
在此之后,我尝试在另一个控件中使用 MouseHover,但它不起作用,我尝试使用 MessageBox ,但它甚至没有工作,我仔细检查了 Button (和其他控件)的事件 在属性选项卡中。
【问题讨论】:
-
你能在
Button_MouseHover中打断点吗 -
我可以在
Button_MouseHover中放断点,但是在我调试的时候它没有生效。
标签: c# winforms mouseover mousehover