Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating Form Inside the Form

I'm new to Visual Studio 2010 and I'm planning to create a Timekeeping system. I'm just want to ask how could I create a form that compose 2 forms in it. For example, if I will click a button it will open a new form inside a form. Please help. Thanks

like image 717
sean Avatar asked Nov 30 '22 16:11

sean


2 Answers

Form formA = new Form();
formA.IsMdiContainer = true;

Form formB = new Form();
formB.MdiParent = formA;
formB.Show();
like image 73
hashi Avatar answered Dec 09 '22 15:12

hashi


You have to work with MDI (Multiple Document Interface), have alook at this article that might help.

like image 44
FIre Panda Avatar answered Dec 09 '22 14:12

FIre Panda