private void MainFrm_Shown(object sender, EventArgs e) { CodeFrm frm = new CodeFrm(); frm.TabText = "新建文件"; frm.Show(this.MainDockPanel); frm.Focus(); }