Posted 14 years ago by Martin de Jong - Statistics Netherlands
i received an error on the DocumentWindow.Activate method:
System.InvalidOperationException was unhandled
Message="This operation is invalid since the DockingWindow has not yet been registered with a DockSite."
at ActiproSoftware.Windows.Controls.Docking.DockingWindow.Activate(Boolean focus)
- i add programmaticly a DocumentWindow to a TabbedMDIContainer. This works, the tab is added and works.
- Then i use the close button (x) of the tab. Document is closed, seems not present anymore in Items etc, so looks ok too.
- Then i add a new DocumentWindow with the same name. It creates a new documentWindow, adds this to the items van the TabbedMdicontainer.
Now i call Activate of the window, and this fails with the above error.