We are using an UltraExplorerBarWorkspace with control style OutlookNavigationPane. We have the NavigationPaneExpansionMode set to OnButtonClick to get the expand/collapse feature. The UltraExplorerBarWorkspace contains several UltraExplorerBarGroup.
The scenario: We collapse the UltraExplorerBarWorkspace (by clicking on the collapse button), then we activate a different smartPart from other group programmatically
Exception: ActiveGroup cannot be set - specified Group cannot be activated! (Group may be disabled or its header may not be visible)
//Code from class UltraExplorerBarWorkspace
group.Active = true; // exception is thrown here
smartPart.Focus();
}
We are using NetAdvantage for .NET 2007 Vol. 3 CLR 2.0
The OutlookNavigationPane style does not support activating a group; selecting the group brings that group's items into the foreground, so you have nothing to gain by setting the group's Active property to true. You should simply remove that line of code.