在 Devexpress 中,在 DockPanel 中显示 Windows 窗体或控件
发布时间
阅读量:
阅读量
1. 在Panel中加载Windows窗体:通过Panel展示一个名称为frmDealPanel的窗体
tabbedView1.BeginUpdate();
// 创建Panel
DockPanel taticsPanel = new DockPanel();
taticsPanel = dockManager1.AddPanel(DockingStyle.Left);
taticsPanel.Text = "WindowsForm Show in DockPanel";
// 创建窗体
Form taticsForm = new frmDealPanel();
// 将窗体的顶级属性设为假,若无此设置,直接加载窗体会报错:无法将顶级控件加载到控件
taticsForm.TopLevel = false;
taticsPanel.Controls.Add(taticsForm);
ta
全部评论 (0)
还没有任何评论哟~
