Click here to Skip to main content
15,913,156 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear sir
how to build a simple three tier windows application in vb.net
thanking you
Posted

Take idea from these C# article.
3-Tier Architecure
3-Tier Architecure CP Article
The same concept will be in VB.Net
 
Share this answer
 
Comments
Sander Rossel 25-Feb-12 6:29am    
My 5 for some good links that will certainly help the OP.
However, I wonder if the OP has the knowledge to understand what's going on. For some links on more basic knowledge please read my answer, which I think compliments yours :)
 
Share this answer
 
Comments
Sander Rossel 25-Feb-12 6:29am    
More good links. My 5! Please read my answer for some complimentary notes.
It's not easy, nor easy to explain. I suggest you start doing some reading on the subject.
First, you must understand Object Oriented Programming[^]. Make sure you get Encapsulation[^], Inheritance[^] and Polymorphism[^]. They are the 'three pillars of OOP'.
After that you are far from there yet. The SOLID principles[^] are key to building robust and re-usable software.
When you get all of these principles you may start reading up on Design Patterns[^].
All these will help you in building Multitier architected[^] software.

Basically, when it comes down to three tiers you have three layers of classes. A data layer, which will interact with your data store. Usually these are some classes that insert, delete, update and get data from a database. Many people use an Object Relational Mapper (ORM)[^] for this. In .NET Entity Framework[^] and NHibernate[^] come to mind.
The 'middle-tier' contains business logic. Here you perform actions on your business object, like calculating the total price of a sales order or an invoice. This tier interacts with your data layer, but not with your data store itself.
Finally there is the UI layer, which is where you present your data to users and allow users to interact with the business layer. An example of a UI layer can be WinForms, HTML and CSS or WPF front ends.
Google has lots of images representing what I just said, take a look[^].

Hope it helps! Good luck! :)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Feb-12 3:23am    
You started from far away, but the references and advice are good, my 5.
--SA
Sander Rossel 26-Feb-12 3:37am    
Thanks. I think it's important the OP knows the basics before starting with 3-tier architecture :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900