Hello.
I am trying to hide a popup menu. The code is following:
Dim popupMenu As Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenu = CType(Me.UltraToolbarsManager1.Tools(key), Infragistics.Win.UltraWinToolbars.PopupMenuTool) popupMenu.InstanceProps.Visible = Infragistics.Win.DefaultableBoolean.False
This code does not do the trick! How can I do this?
What happens after the property is set? If the tool is disabled instead of hidden and it resides on a RibbonGroup this is expected behavior. The Office 2007 UI Guidelines state that the contents of a ribbon tab cannot be modified, so tools cannot be hidden and are diabled instead. To actually hide the tools, set Office2007UICompatibility to False. If the tools are not on a RibbonGroup, it could be a bug and I would recommend submitting it to the support group: http://ko.infragistics.com/gethelp.
The tool is not on a Ribbon Group and is not disabled. Setting the Office2007Compatibility to False does not change this. I however found a solution to my problem. By using SharedProps (popupMenu.SharedProps.Visible = False) the visibility works fine.
Thanks .it worked