Connecting Tech Pros Worldwide Help | Site Map

Need some design advice

bardo
Guest
 
Posts: n/a
#1: Nov 16 '05
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

Mohamoss
Guest
 
Posts: n/a
#2: Nov 16 '05

re: Need some design advice


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

SP
Guest
 
Posts: n/a
#3: Nov 16 '05

re: Need some design advice


"bardo" <bardo@discussions.microsoft.com> wrote in message
news:22CDB841-8C77-4672-8943-0112CEAA9430@microsoft.com...[color=blue]
> 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.
>[/color]

User Controls might work for you

SP


bardo
Guest
 
Posts: n/a
#4: Nov 16 '05

re: Need some design advice


Mohamoss and SP ,

Thanks for the feed back.

Bardo

Closed Thread