N
Nico Vrouwe
Hi,
I'm fairly new to Windows Forms, and I'm wondering how to add a child form
to my form? I don't want my main form to be an MDI form, I just want to put
a child form in it. Like putting in a window with WS_CHILD style.
I want to be able to edit all child forms like normal forms using the forms
designer. And show a given child form in the main form when needed.
When I try this:
Form childForm = new SomeForm();
childForm.Parent = this;
I get an error "Cannot add a top level control to a control"
Perhaps I overlooked something, but I can't find a solution anywhere.
Anyone?
Thanks in advance,
Nico Vrouwe
I'm fairly new to Windows Forms, and I'm wondering how to add a child form
to my form? I don't want my main form to be an MDI form, I just want to put
a child form in it. Like putting in a window with WS_CHILD style.
I want to be able to edit all child forms like normal forms using the forms
designer. And show a given child form in the main form when needed.
When I try this:
Form childForm = new SomeForm();
childForm.Parent = this;
I get an error "Cannot add a top level control to a control"
Perhaps I overlooked something, but I can't find a solution anywhere.
Anyone?
Thanks in advance,
Nico Vrouwe