日期:2014-05-17 浏览次数:20823 次
this.panelMain.Controls.Clear();
subForm.TopLevel = false; //----->1
subForm.WindowState = FormWindowState.Maximized;
subForm.Dock = DockStyle.Fill;//---->2
subForm.Parent = this.panelMain;//-->3
subForm.Show();
subForm.BringToFront();
dgv.Rows[i].DefaultCellStyle.BackColor = Color.FromArgb(239, 239, 239);