dockpanel suit version 2.5rc1
修改dockcontenthandaler.cs的Close方法
1 public void Close()
2 {
3 DockPanel dockPanel = DockPanel;
4 Form activedForm = null;
5
6 if (dockPanel != null)
7 {
8 dockPanel.SuspendLayout(true);
9 if (dockPanel.ParentForm.ActiveMdiChild != null)
10 {
11 activedForm = dockPanel.ParentForm.ActiveMdiChild;
12 }
13 }
14
15 Form.Close();
16
17 if (dockPanel != null)
18 {
19 if (activedForm != null)
20 {
21 activedForm.Activate();
22 }
23 dockPanel.ResumeLayout(true, true);
24 }
25 }