I am trying to use UltraMDITabWorkspace in SCSF 2007 May VS 200.First of all when its dropped on Shell in desing mode, it gets displayed in toollist but not on the shell itself unlike CAB TabWorkspac, which has option to dock as well.
Secondly when I try add view to it, app throws exception with message "Is not MDIh container".Any thoughts?
Your first issue is probably due to the fact that UltraMDITabWorkspace applies to a component and not a control. This would be similar to adding an UltraTabControl and an UltraTabbedMdiManager to a Form without CAB. The tab control will be seen on the design surface, but the tabbed mdi manager will only be seen in the component tray.
Your second issue is caused by the fact that the Form does not have IsMdiContainer set to True.
I have UserControl to which I am trying to put UltraMDITabWorkspace. This way I can add multiple views in to MDI Tabbed workspace using
Where View1 and view2 are views
I saw similar samples in NCEK kit but not clear how this control is being used. Can you throw some light on this?
UltraMdiTabWorkspace is a derived UltraTabbedMdiManager. UltraTabbedMdiManager is a component that you put on a form whose IsMdiContainer is true and it is used to display the form's MdiChildren as tabbed documents. You cannot use an UltraTabbedMdiManager (and therefore an UltraMdiTabWorkspace) with a UserControl; it can only be used with a Form whose IsMdiContainer is true. If you just want to show views as tab items then you would use an UltraTabWorkspace but this will not provide the ability to create multiple tab groups like that of VS if that is the look you are trying to acheive.
Is there a sample of how this would work? We are trying to use a left workspace and a right tab workspace where users can manage multiple "views". Much like Visual Studio. Any recommendations on this effect with CAB?
I'm not sure what aspect of Visual Studio you are referring to. UltraDockWorkspace is a derived UltraDockManager that provides support for displaying smart parts as panes. Panes in an UltraDockManager are like the containers that house Solution Explorer, the Toolbox, the PropertyGrid, etc. UltraMdiTabWorkspace is a derived UltraTabbedMdiManager. UltraTabbedMdiManager will only work with a Form whose IsMdiContainer is set to true and provides the tabbed document interface that you see in main portion of VS (i.e. where the code windows open). So depending on how you want to display the smart parts, you would use one or the other. With regards to a sample I believe there is a sample included with the product as part of the NCEK which uses both of these.
I know the problem because I ran into it as well and it took me some time to figure out how to solve it.
Here comes the good news: It's really easy!
mindiff, what you have to do is set the IsMdiContainer property of the ShellForm to true. That's it.
Best regards, Gerald