Tiago Tiago - 4 months ago 15
C# Question

Show multiple windows form into a single form

I have three windows forms like below images. I want to combine all three forms into one form. Which I can show fullscreen application as a one window



I can't use only one form with all the code. It has to be something like this three forms combined into one full-screen form. Is there a way to combine them?

Answer

You can do this by MDI Container

FormA formA = new FormA();
formA.IsMDIContainer = true;

FormB formB = new FormB();
formB.MDIParent = formA;
formB.Show();

FormC formC = new FormC();
formC.MDIParent = formA;
formC.Show();

and then run

formA.Show();

look at this article

Comments