关闭ContextMenuStrip后没有发生MouseMove事件 [英] MouseMove event not happening after closing a ContextMenuStrip
问题描述
你好组
我有一个简单的表单,其中有一个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
推荐答案
一个附加说明.我收到没有问题的mouseDown和mouseUp.只是mouseMove无法触发.
One additional note. I am receiving the mouseDown and mouseUp with no problem. It is just the mouseMove that fails to fire.
这篇关于关闭ContextMenuStrip后没有发生MouseMove事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!