Need some design advice

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

I want to make an application withs centers around 1 windowform. This form I
want to give the same appearance as the Outlook.
I have a listbox on the left-handside then a splitter. The rightside of the
splitter I want to fill with different things.
Now I would like have some advice on how what is the best approach to
program the rightside.

The main purpose of the program is entering data that will be stored in a
Access Database.
So when I make a selection on the left side, on the right side I what to
show a bunch of textboxs, labels, buttons, comboboxes and a datagrid. The
textboxs and comboboxes and buttons are used to fill the datagrid. The
datagrids are link to the databases. So each selection on the left side will
show a different setup on the rightside.

At the moment I have it working making use of panels. But the because I
dumped most of the code just in one class this class becomes very large.

So I would like to know if there is a better approach to programming this.
Like is it possible to put each panel in a seperate class. Only I am afraid
that is the databases get large this approach will slowdown the program.
Because of the data transfer needed between classes.

Or is it possible to use MDI.

So could someone give me more inside in how others make these kind of
programs.

Thanks
 
Since you already did it with panels , there should be no problem in that .
if you are worried about your class being too big however , why don't you
define code region. You can use that to define section of your code
according to their logical functions . you define code regions in c# this
way
#region small description of the region - like what does it do
#endregion
Then you can use the + and - icons to expand or collapse that region when
you need to.
hope this helps
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
bardo said:
Hello all,

I want to make an application withs centers around 1 windowform. This form
I
want to give the same appearance as the Outlook.
I have a listbox on the left-handside then a splitter. The rightside of
the
splitter I want to fill with different things.
Now I would like have some advice on how what is the best approach to
program the rightside.

User Controls might work for you

SP
 
Back
Top