private void barButtonItem查询_ItemClick(object sender, ItemClickEventArgs e) { UserDeptCheckQuery Frm = UserDeptCheckQuery.GetInstance(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); //Children.Add(Frm); }
//public void ChangAllChildRenSize() //{ // foreach (Form ChildForm in Children) // { // ChildForm.Height = fheight; // ChildForm.Width = fwidth; // } //} //private void Dept_SizeChanged(object sender, EventArgs e) //{ //if (isno) //{ // fheight = this.Height; // fwidth = this.Width; // ChangAllChildRenSize(); //} //} private void User_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; UserDeptCheckQuery Frm = UserDeptCheckQuery.GetInstance(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); //xtraTabControl1.MakePageVisible(xtraTabPage1); //isno = true; //Children.Add(Frm); }