akaRickShaw

Hi, I am wondering if anyone can help me or point me to the right direction. Currently, I can program applications in C#. What I am lacking is the know how to setup a proper application structure. Right now when I create a project/application, everything goes in one *.CS file (with form) which works but not professional looking when you peek behind the scenes. I need advise on properly setting up a project so I can, maybe, create other *.CS file to move out procedures/functions, database related stuff, etc. Any books that can help me

Can anyone help.

Thanks,

Rick..



Re: Visual C# General Need advise in programming C#.

Ashish Basran

You can divide your application into different layers as per your need. You can use Microsoft Enterprise Library/Application Blocks too.

Have a look at http://msdn.microsoft.com/practices/

Building a 3-Tier Application using ASP.NET






Re: Visual C# General Need advise in programming C#.

RizwanSharp

You need to study about Object Oriented Programming Paradigm and need to split you logic in seperate code blocks and then use objects of classes from those block in your application when they are needed. This introduces many benefits in real world programming reusabliy, understandability and many more.

Once you have gone through basics and common usages of OOP then you can think in dividing your application in Tiers as suggested by Ashish.

Note: A Tier is logical layer of an application which collectively works with other tiers to produce some healthy output. And when there is need to accomodate any change in your application you can do it in required layer.

I hope this will help.

Best Regards,

Rizwan aka RizwanSharp.






Re: Visual C# General Need advise in programming C#.

Figo Fei - MSFT

Hi,

Just use visual studio to help you organize the files the data and references as well.

And MSDN is always good resources: http://msdn2.microsoft.com/en-us/library/wbzbtw81(VS.80).aspx

Thank you