本帖最后由 苟于伟 于 2013-5-6 20:31 编辑
- private void but2_MouseEnter(object sender, EventArgs e)
- {
- this.Text = "MouseEnter";//不会执行这个事件
- }
- private void but2_MouseLeave(object sender, EventArgs e)
- {
- this.Text = "MouseLeave";
- }
- private void but2_MouseMove(object sender, MouseEventArgs e)
- {
- this.Text = "MouseMove";
- }
复制代码 在MouseMove事件中的(this.Text = "MouseMove";)与MouseEnter事件中的(this.Text = "MouseEnter";)在执行代码时,为什么两个件事只能是触发MouseMove事件,这是优先级的问题吗?
在代码如下:
|