鼠标双击事件问题 [英] Mouse Double Click Event Issue
本文介绍了鼠标双击事件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何避免在扩展treeNode上调用表单的双击事件?
提前谢谢
解决方案
< blockquote> on 双击事件在开头添加此代码
if(this.ActiveControl!= treeView)
{
//工作
}
或
if(this .ActiveControl == treeView)
{
return;
}
how to avoid calling double click event of form on expanding treeNode?
Thanks in advance
解决方案
on double click event add this code in beginning
if(this.ActiveControl != treeView) { //Do Work }
or
if(this.ActiveControl == treeView) { return; }
这篇关于鼠标双击事件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文