473,324 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

help to design my mc++ project

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

Nov 17 '05 #1
2 1042
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

finleeds wrote:
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

Nov 17 '05 #2
thank you !

it s so easy I cannot understand why i was so stupid not to do that

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: PHPkemon | last post by:
Hi there, A few weeks ago I made a post and got an answer which seemed very logical. Here's part of the post: PHPkemon wrote: > I think I've figured out how to do the main things like...
19
by: What-a-Tool | last post by:
I have a school project (ASP) in which I have to call three different ASP pages from three different and identical (except for the form "action", obviously) HTM pages. This I have no problem with....
1
by: Proteus | last post by:
Any help appreciated on a small perl project I need to write for educator/teaching purposes. I have not programmed perl for some time, need to get up to speed, maybe some kind souls hrere will help...
4
by: Martin Vorbrodt | last post by:
please be so kind and direct me to as many sources as you can regarding the *subject* matter. i'm new to the topic and would like to learn as much as possible. thank you in advance martin
1
by: GERALD SHAW | last post by:
Acc 97 Hi, I have the following in my query which works well if it is all set to numbers on table design. But what I want to do is where it states MC (short for machine name) use the actual...
8
by: Ted Miller | last post by:
Hi folks, I'm looking at moving a large base of C++ code to .Net under tight time constraints. The code runs in mission-critical environments, and I am extremely concerned about the loader lock...
5
by: John | last post by:
I am new in Regular Expression. Could someone please help me in following expression? 1. the string cannot be empty 2. the string can only contains AlphaNumeric characters. No space or any...
8
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the...
0
by: Hennie Coertze | last post by:
Good day, My knowledge of XML is next to none and I only have one XSL code to use. I also assume I may be using incorrect jargon and hope you will understand what I need. I have an XSL style...
1
by: lugo | last post by:
Private Sub Command1_Click() Dim Thin As Single, Th12 As Single, Th13 As Single, Th14 As Single, Th15 As Single Dim Th16 As Single, Th17 As Single, Th18 As Single, Th19 As Single, Th110 As Single...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.