Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2005

Tip: Looking for answers? Try searching our database.

help to design my mc++ project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
finleeds - 18 May 2005 13:52 GMT
Hi all

here is my problem :

my main form contains lot of panels and I do not want to have all the
code in the mainform.cpp.

so I tought the best way is to move all the controls I ve got for every
panels into several custom controls.

but is it the best way to do ? can I avoid multiple dlls (one per
custom controls) ?

could you advice me on my issue or show me some articles/samples

thanks in advance

ben
Tamas Demjen - 18 May 2005 20:21 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.