Click here to Skip to main content
15,888,202 members
Home / Discussions / C#
   

C#

 
Questionshould I place sounds in seperate objects? Pin
stephen.darling21-Sep-10 14:54
stephen.darling21-Sep-10 14:54 
AnswerRe: should I place sounds in seperate objects? Pin
Luc Pattyn21-Sep-10 15:34
sitebuilderLuc Pattyn21-Sep-10 15:34 
GeneralRe: should I place sounds in seperate objects? Pin
stephen.darling21-Sep-10 15:38
stephen.darling21-Sep-10 15:38 
QuestionNested Set Pin
aspbeast21-Sep-10 11:25
aspbeast21-Sep-10 11:25 
AnswerRe: Nested Set Pin
Chris Trelawny-Ross21-Sep-10 13:17
Chris Trelawny-Ross21-Sep-10 13:17 
GeneralRe: Nested Set Pin
aspbeast21-Sep-10 20:02
aspbeast21-Sep-10 20:02 
GeneralRe: Nested Set Pin
Chris Trelawny-Ross22-Sep-10 4:12
Chris Trelawny-Ross22-Sep-10 4:12 
QuestionServer Client Communication Problem Pin
teknolog12321-Sep-10 10:17
teknolog12321-Sep-10 10:17 
Hi all, I have a server/client application. Program Works fine but I think I miss one little point. I put down a basic example. The question is; If I put a second strReadLine to server code and nothing comes from client, it gives error. Because it tries to read. So what can I do to prevent this?

/////server

//Read Message 1
string string1FromClient = strReader.ReadLine();

//Reply Message 1
strWriter.WriteLine("client sent: "+ string1FromClient);
strWriter.Flush();

//Read Message 2  (if client doesn’t send this, server throws an exception error)
string string2FromClient = strReader.ReadLine();



/////Client

//send Message 1 (send it every minute)
strWriter.WriteLine("message");
strWriter.Flush();

//read reply to message 1
string stringFromServer = strReader.ReadLine();

//send Message 2  (apart from the first message, send it sometimes on user demand) 
strWriter.WriteLine("message");
strWriter.Flush();

AnswerRe: Server Client Communication Problem Pin
Eddy Vluggen22-Sep-10 9:05
professionalEddy Vluggen22-Sep-10 9:05 
GeneralRe: Server Client Communication Problem Pin
teknolog12322-Sep-10 10:39
teknolog12322-Sep-10 10:39 
GeneralRe: Server Client Communication Problem Pin
Eddy Vluggen22-Sep-10 11:15
professionalEddy Vluggen22-Sep-10 11:15 
Questioncustom color on winform Pin
jashimu21-Sep-10 10:14
jashimu21-Sep-10 10:14 
AnswerRe: custom color on winform Pin
DaveyM6921-Sep-10 12:19
professionalDaveyM6921-Sep-10 12:19 
QuestionDebug: enable? Pin
albh0721-Sep-10 10:11
albh0721-Sep-10 10:11 
AnswerRe: Debug: enable? Pin
Chris Trelawny-Ross21-Sep-10 13:25
Chris Trelawny-Ross21-Sep-10 13:25 
QuestionHow do i refer to my own custom control, within the control? Pin
stephen.darling21-Sep-10 9:10
stephen.darling21-Sep-10 9:10 
AnswerRe: How do i refer to my own custom control, within the control? Pin
OriginalGriff21-Sep-10 9:29
mveOriginalGriff21-Sep-10 9:29 
GeneralRe: How do i refer to my own custom control, within the control? Pin
stephen.darling21-Sep-10 10:04
stephen.darling21-Sep-10 10:04 
GeneralRe: How do i refer to my own custom control, within the control? Pin
OriginalGriff21-Sep-10 21:44
mveOriginalGriff21-Sep-10 21:44 
QuestionDetermining the Data Type of a Generic Pin
kevinnicol21-Sep-10 6:59
kevinnicol21-Sep-10 6:59 
AnswerRe: Determining the Data Type of a Generic Pin
kevinnicol21-Sep-10 7:16
kevinnicol21-Sep-10 7:16 
AnswerRe: Determining the Data Type of a Generic Pin
Ian Shlasko21-Sep-10 7:16
Ian Shlasko21-Sep-10 7:16 
AnswerRe: Determining the Data Type of a Generic Pin
AspDotNetDev21-Sep-10 11:34
protectorAspDotNetDev21-Sep-10 11:34 
AnswerRe: Determining the Data Type of a Generic Pin
phil.o22-Sep-10 3:44
professionalphil.o22-Sep-10 3:44 
QuestionHow to take data from USB-based device using C# ?? Pin
depressedguy21-Sep-10 6:51
depressedguy21-Sep-10 6:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.