Moataz Aahmed Mohammed
Moataz Aahmed Mohammed

Reputation: 1297

How to create Window Form inside another one?

I need to embedded window form inside another one like this enter image description here

Upvotes: 2

Views: 1028

Answers (2)

Jim Mischel
Jim Mischel

Reputation: 134005

The following might do what you want. ChildForm is the form that you want to place inside of ParentForm.

ChildForm.TopLevel = false;
ParentForm.Controls.Add(ChildForm);
ChildForm.Show();

Note that you might have to play with the Location of the child form.

Upvotes: 1

Lexusjjss
Lexusjjss

Reputation: 120

I believe you want to look up MDI (Multiple Document Interface).

Upvotes: 2

Related Questions