马上加入IBC程序猿 各种源码随意下,各种教程随便看! 注册 每日签到 加入编程讨论群

C#教程 ASP.NET教程 C#视频教程程序源码享受不尽 C#技术求助 ASP.NET技术求助

【源码下载】 社群合作 申请版主 程序开发 【远程协助】 每天乐一乐 每日签到 【承接外包项目】 面试-葵花宝典下载

官方一群:

官方二群:

Developer Express和Janus WinForms Controls中控件的冲突解决方法

[复制链接]
查看3807 | 回复2 | 2013-1-17 14:57:50 | 显示全部楼层 |阅读模式
     我用DE的xtraTabbedMdiManager组件来管理我的子窗体。在父窗体中放置了janus的Ribbon控件做菜单。让我比较郁闷的是,直接放上去会在运行的时候会弹出错误窗口,如下:

[C#] 纯文本查看 复制代码
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;搞定!
C#论坛 www.ibcibc.com IBC编程社区
C#
C#论坛
IBC编程社区
chao2332601 | 2013-6-16 01:00:31 | 显示全部楼层
谢谢分享!!!
chao2332601 | 2013-6-16 04:32:28 | 显示全部楼层
谢谢分享!!!
*滑块验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则