I need to integrate the move to previous tabgroup and move to next tabgroup in a menu
When I right click a tab I can see move to previous or move to next or both depending on certain conditions. How can I see if in a certain tabgroup I need to show move to previous or move to next or both, what are the conditions and how can I retrieve those conditions
You can set the Settings.AllowClose on an MdiTab to False to prevent the Close menu item from appearing in the context menu. To remove the Move to previous and move to next menu items, you would need to handle the InitializeContextMenu event on the toolbars menu and manually remove them from the MenuItems collection of the context menu on the event args.
I am trying to remove the context menu when you click the tab buttons (Close & Move to previous tab group).
How do go about it.
It looks like the processing to determine whether to show these menu items is very involved. I would recommend you handle the InitializeContextMenu event of the UltraTabbedMdiManager. Examine the menu items in the ContextMenu on the event args to know whether those items were added, then set Cancel to True so the default menu is not shown.