Our application has a MainForm that has TabbedMdiManager and creates MDI child forms.
Now, we are trying to turn this MainForm as a user control.
It seems to me that there are two options:
1. Turn MainForm as a user control; But, would menu and tabbed MDI still work?
2. embed MainForm into a user control; Is this possible to do?
Thanks.
Mike
mike2008 said:1. Turn MainForm as a user control; But, would menu and tabbed MDI still work?
The toolbars manager will work inside a UserControl, but the tabbed mdi manager will not.
mike2008 said:2. embed MainForm into a user control; Is this possible to do?
You can embed a Form inside a UserControl as long as you set TopLevel to False and Visible to True on the Form. Then add it to the Controls collection of the UserControl.
A further question to the second approach:
If I embed the MainForm into a UserControl, would the tabbed mdi manager work?
Thanks.Mike
It looks like the Form does not allow you to set TopLevel to False and IsMdiContainer to True. Apparently, mdi containers must be top-level.
Is there a replacement for the mdi tabbing inside Infragistics that could be used in a UserControl?
Thanks
Do you have a simple sample of UltraTabControl to do that?
I looked at some code for Windows TabContorl, but they are slightly different from UltraTabContro.
To save the contents of each tab, can I use SerializeTag and DeserializeTag?
Yes, that is correct, the VisibleTabs collection will be in the same order as seen on screen.
I presume i can iterate throught the VisiableTabs collection instead of Tabs collection.
Mike Dour"]The load methods are not supposed to create the tabs, they just reorder the tabs to a previously saved tab order.
I see.
Is there a convenient way to iterate through the tabs collection via each tab's VisibleIndex instead of Index?
If I can do that, I do not need to save the tab order, just the contents to re-create the tab page.
The load methods are not supposed to create the tabs, they just reorder the tabs to a previously saved tab order.