Did you know that you can place a form onto a panel on another form?
Here's how (trying to recall it from memory):
MyForm* f = new MyForm;
// for C++/CLI, replace * with ^, new with gcnew
f->TopLevel = false;
// this is a must for placement on a panel on another form
f->Dock = System::Windows::Forms::DockStyle::Fill;
// fill its parent, the panel
this->panel1->Controls->Add(f);
// place "f" on a panel on the current form
f->Show();
// I think you need this too
So you can break a large form into several smaller sub-forms, and put
them together in the application's main window. It's often better than
building huge monster forms, especially if you can reduce or completely
eliminate inter-dependencies between the individual sub-forms. In case
the sub form's caption shows up, I know you can disable that easily. I
don't remember all the details off the top of my head.
If the sub-form is something that you plan to reuse in many projects,
you can try to create a control library for that. Otherwise it's not
necessary for the concept to work.
Tom
> Hi all
>
[quoted text clipped - 14 lines]
>
> ben
finleeds - 19 May 2005 09:28 GMT
thank you !
it s so easy I cannot understand why i was so stupid not to do that