Successfully resolved the conflict of controls in Developer Express and Janus WinForms controls

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.