to have a good user interface, I wanna the child forms Dock in a panel on main form. the below code works for simple show, but I want my child forms be showDialog. so I think it's better I override the child form load and use showDialog instead open as simple show. Is there any better idea, inform me please! :)
DialogResult dr = new DialogResult();
Form2 frm = new Form2();
//frm.TopLevel = false;
panel1.Controls.Add(frm );
frm.Dock = DockStyle.Fill;
frm.BringToFront();