The latest is to do a set of GIS system framework, which used the Janus WinForms controls and Developer Express these two plug-ins.
I use De's xtratabbedmdimanager component to manage my subform. The Janus Ribbon control is placed in the parent form to make a menu. Let me be more depressed is, directly put up will be in the runtime will pop-up error window, as follows:
System.InvalidOperationException: Window handle already exists.
In System.Windows.Forms.NativeWindow.CheckReleased ()
In System.Windows.Forms.NativeWindow.AssignHandle (IntPtr handle, Boolean Assignuniqueid)
In System.Windows.Forms.NativeWindow.AssignHandle (INTPTR handle)
In JANUS.WINDOWS.RIBBON.JNSI.A (Object a_1, EventArgs a_2)
In System.Windows.Forms.Control.OnVisibleChanged (EventArgs e)
In System.Windows.Forms.Control.OnParentVisibleChanged (EventArgs e)
In System.Windows.Forms.Control.OnVisibleChanged (EventArgs e)
In System.Windows.Forms.ScrollableControl.OnVisibleChanged (EventArgs e)
In System.Windows.Forms.Form.OnVisibleChanged (EventArgs e)
In System.Windows.Forms.Control.WmShowWindow (message& m)
In System.Windows.Forms.Control.WndProc (message& m)
In System.Windows.Forms.ScrollableControl.WndProc (message& m)
In System.Windows.Forms.ContainerControl.WndProc (message& m)
In System.Windows.Forms.Form.WmShowWindow (message& m)
In System.Windows.Forms.Form.WndProc (message& m)
In System.Windows.Forms.Control.ControlNativeWindow.OnMessage (message& m)
In System.Windows.Forms.Control.ControlNativeWindow.WndProc (message& m)
In System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, INTPTR wparam, INTPTR lparam)
I searched the internet for a long time and did not find the relevant information. This evening reminds me of the way to resolve the conflict between TOC and De in Arcengine. Using this method, the problem is solved successfully. The specific approach is as follows:
Set the Xtratabbedmdimanager mdiparent to none at design time, when the parent form is initialized, add: Xtratabbedmdimanager1.mdiparent = this; get it done!
Hope to encounter similar problems friends can learn from! Happy ing!