Developer Express和Janus WinForms Controls中控件的冲突解决方法
我用DE的xtraTabbedMdiManager组件来管理我的子窗体。在父窗体中放置了janus的Ribbon控件做菜单。让我比较郁闷的是,直接放上去会在运行的时候会弹出错误窗口,如下:1.System.InvalidOperationException: 窗口句柄已存在。
2.在 System.Windows.Forms.NativeWindow.CheckReleased()
3.在 System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle, Boolean assignUniqueID)
4.在 System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle)
5.在 Janus.Windows.Ribbon.JNSI.a(Object A_1, EventArgs A_2)
6.在 System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
7.在 System.Windows.Forms.Control.OnParentVisibleChanged(EventArgs e)
8.在 System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
9.在 System.Windows.Forms.ScrollableControl.OnVisibleChanged(EventArgs e)
10.在 System.Windows.Forms.Form.OnVisibleChanged(EventArgs e)
11.在 System.Windows.Forms.Control.WmShowWindow(Message& m)
12.在 System.Windows.Forms.Control.WndProc(Message& m)
13.在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
14.在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
15.在 System.Windows.Forms.Form.WmShowWindow(Message& m)
16.在 System.Windows.Forms.Form.WndProc(Message& m)
17.在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
18.在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
19.在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在设计时把xtraTabbedMdiManager的MDIParent设置为无,在父窗体初始化时,加入: xtraTabbedMdiManager1.MdiParent = this;搞定!
谢谢分享!!! 谢谢分享!!!
页:
[1]