本文介绍了鼠标悬停在网格上时如何隐藏上下文菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用vb.net的Windows窗体。这种形式有infragistics超赢网格。与上下文菜单项。项目名称是"删除项目"。但是当用户从网格执行鼠标时,我想隐藏上下文菜单项,当用户将鼠标悬停回
网格时,我想显示上下文菜单项。我该怎么做。
I am using windows forms with vb.net. This form has infragistics ultra win grid. with context menu item. The item name is "Delete Item". But when the user performs mouse out from grid i want to hide context menu item and when user hover back to the grid i want to show the context menu item. How can i do this.
推荐答案
然而,大多数控件和Infragistics最有可能派生出具有Enter和Leave事件的所有控件。
However, most controls and Infragistics derives most probably all its controls from that have an Enter and a Leave event.
所以在我看来很明显要走的路
So that seems to me the obvious way to go
这篇关于鼠标悬停在网格上时如何隐藏上下文菜单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!