本文介绍了如何在任务栏图标上分离Click和DoubleClick功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对MouseClick和MouseDoubleClick事件具有notifyIcon,第二项操作不起作用,因为单击首先执行.默认情况下,MouseClick禁止使用上下文菜单.因此需要以某种方式分离此动作.
请帮忙.

I have notifyIcon with MouseClick and MouseDoubleClick events, the second action doesn''t work, because single click performs first. And by default MouseClick prevents from using context menu. So need to separate this actions some-how.
Please, help.

推荐答案

A double-click is determined by the mouse settings of the user's operating system. The user can set the time between clicks of a mouse button that should be considered a double-click rather than two clicks. The Click event is raised every time a control is double-clicked. For example, if you have an event-handling methods for the Click and DoubleClick events of a Form, the Click and DoubleClick events are raised when the form is double-clicked and both methods are called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be raised twice.



请在此处阅读有关此内容的所有信息: Control.DoubleClick事件 [ ^ ]

希望这会有所帮助,如果您仍然有疑问,请对我的回答发表评论.

最好的问候,
Manfred



Please read all about it here: Control.DoubleClick Event[^]

Hope this helps, if you still have doubts please leave a comment to my answer.

Best Regards,
Manfred



这篇关于如何在任务栏图标上分离Click和DoubleClick功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 19:56