[Edit] I just noticed that, according to your bio, you have a Masters Degree in Computer Science. So my original response, below, was probably pitched at the wrong level. I assumed you were new to programming, but with a Masters in CS you should have quite a bit of, at least, academic experiece. [/Edit] Why not start with a simpler project until you understand the environment you are working in. When I was a beginner programming in BASIC (Sinclair BASIC to be exact) I wrote simple programs like noughts-and-crosses and hangman. Waqar Nadeem wrote: I required a code for simple chat server in which multiple clients can be connected This is quite a complex problem. Tracking mutliple clients is not something a beginner should be handling. Even I get dizzy with the thought of tracking multiple clients in a real time senario - That's what architectures like ASP.NET are good at. They help separate out the different clients so for the majority of the code I write it is like I have one user. If you really must try to do this then break the problem in to smaller pieces. Then come back and ask questions on the smaller pieces. Questions like "I tried to do X but it didn't work and I got a Y error message. Here is the code I used, can anyone see where I went wrong?" are really good and will get a better response. --Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown) Enumerators in .NET: See how to customise foreach loops with C#