鼠标悬停在网格上时如何隐藏上下文菜单项 [英] How to hide context menu item when mouse out on grid
问题描述
我正在使用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。
In this forum are in fact no presentation parts done for sure not infragistics.
然而,大多数控件和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
http:// www .infragistics.com / products / windows-forms / grid / grid
这篇关于鼠标悬停在网格上时如何隐藏上下文菜单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!