关闭ContextMenuStrip后没有发生MouseMove

关闭ContextMenuStrip后没有发生MouseMove

本文介绍了关闭ContextMenuStrip后没有发生MouseMove事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好组

我有一个简单的表单,其中有一个MenuContextStrip,并且我还查找mouseMove事件.该问题很容易重现,因为每次我通过单击鼠标右键打开上下文菜单时都会发生.如果我通过单击应用程序窗口(appclick返回代码)关闭上下文菜单,那么在该窗口被遮盖并还原之前,我将不再收到mouseMove事件.如果我单击contextMenuItems之一,则不会发生此问题.有人对此有解决方案吗?

I have a simple form where I have a MenuContextStrip and I also look for mouseMove events. The problem is simple to reproduce as it occurs everytime I open the context menu by clicking the right mouse button. If I close the context menu by clicking on the application window (appclick return code) then I no longer receive mouseMove events until the window is obscured and restored. The problem does not happen if I click on one of the contextMenuItems. Anybody have a solution to this?

是否失去焦点.我曾尝试过集中精力和类似的事情,但无济于事.

Is there a loss of focus. I have tried playing around with focus and things like that but to no avail.

谢谢

barant

推荐答案


这篇关于关闭ContextMenuStrip后没有发生MouseMove事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 08:17