Hi,
I have a problem with changing MdiParent.
My app is like this.
I have two forms with UltraTabbedMdiManager in each form. I added a context menu on the Tab it self to be sent between the two forms.
I was using this code to send it between the forms:
a.MdiParent = Nothinga.MdiParent = m_SencondaryMDIContainer
I needed to add MdiParent = Nothing to even get the form to be loaded correctly in the new MdiContainer.
But when I did that I lost the context menu of the Grid that I have in the MdiChild.
If I skip the MdiParent = Nothing then the context menu is still there but then it will not be loaded correctly.
Can this be done in some other way?
What are you using to provide your context menu? Are you using a context menu of the UltraToolbarsManager?
If so, then where is the UltraToolbarsManager? Is there an UltraToolbarsManager on the child form? Is there one on the Mdi parent form?
Which one does the context menu come from?
Does this work if you do not use the TabbedMdiManager? You can test this out by setting Enabled to False on the TabbedMdiManager.
The setup of my controls is like this:MainGUI -> UltraTabbedMdiManagerEvery tab is a windows form that has a container area (panel).In that container area I am placing a usercontrol which consists of a UltraGrid and a UltraToobarsManager.
I am using usercontrol.UltraToolbarsManager.SetContextMenuUltra(UltraGrid, sMenuKey) to add the contextmenu. This is called when I right click in the grid.
MainGUI has a UltraToolbarsManager which is providing the main menu, this one is not used to provide context menu.
No, it does not work if I disable the TabbedMdiManager.
Same problem, the context menu works before I have changed the mdiparent, but not after.
Thanks for the help.
// Mathias