Click here to Skip to main content
15,898,036 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sorting a BindingList Pin
MatthysDT19-Feb-09 1:32
MatthysDT19-Feb-09 1:32 
GeneralRe: Sorting a BindingList Pin
Rafique Sheikh3-Nov-10 14:03
Rafique Sheikh3-Nov-10 14:03 
GeneralRe: Sorting a BindingList Pin
MatthysDT3-Nov-10 20:48
MatthysDT3-Nov-10 20:48 
GeneralRe: Sorting a BindingList Pin
Rafique Sheikh4-Nov-10 5:58
Rafique Sheikh4-Nov-10 5:58 
AnswerHow to use binding list order by Pin
Dravidian_Knight23-Aug-11 21:00
Dravidian_Knight23-Aug-11 21:00 
GeneralRe: How to use binding list order by Pin
MatthysDT23-Aug-11 21:32
MatthysDT23-Aug-11 21:32 
Questionsending data over tcp Pin
Mubeen.asim18-Feb-09 4:00
Mubeen.asim18-Feb-09 4:00 
GeneralRe: sending data over tcp [modified] Pin
Kristian Sixhøj18-Feb-09 4:17
Kristian Sixhøj18-Feb-09 4:17 
Yes, you can use the Encoding.GetBytes[^] method for encoding the strings into bytes,
then you can use Encoding.GetString[^] at the destination to decode the bytes into strings.

Edit: Sorry, I misread your post. What you want to do is to collect all strings, convert them into bytes and send them all at the same time - then decode them at the receiver. Let's say you have an array with the strings - use a StringBuilder and a foreach loop to build the strings into one big string. Remember to apply a seperator after each string:
builder.Append(theString + seperator);

The strings would then come out as (assuming semi-colon ( ; ) is the seperator):
hello;goodbye;hi;

At the receiver application you would then split the string (after decoding it of course) into an array to get each string.

I hope you could understand what I tried to say, otherwise ask.

Green Alien | [Alien] Kristian Sixhoej
"You can always become better." - Tiger Woods

modified on Wednesday, February 18, 2009 10:37 AM

GeneralRe: sending data over tcp Pin
Mubeen.asim18-Feb-09 7:05
Mubeen.asim18-Feb-09 7:05 
GeneralRe: sending data over tcp Pin
Kristian Sixhøj18-Feb-09 7:09
Kristian Sixhøj18-Feb-09 7:09 
QuestionCan someone recommend a good tutorial on events in .NET (C#) Pin
Mihai Pruna18-Feb-09 3:39
Mihai Pruna18-Feb-09 3:39 
AnswerRe: Can someone recommend a good tutorial on events in .NET (C#) Pin
ABitSmart18-Feb-09 4:00
ABitSmart18-Feb-09 4:00 
AnswerRe: Can someone recommend a good tutorial on events in .NET (C#) Pin
DaveyM6918-Feb-09 4:16
professionalDaveyM6918-Feb-09 4:16 
GeneralRe: Can someone recommend a good tutorial on events in .NET (C#) Pin
Mihai Pruna18-Feb-09 4:56
Mihai Pruna18-Feb-09 4:56 
AnswerRe: Can someone recommend a good tutorial on events in .NET (C#) Pin
Giorgi Dalakishvili18-Feb-09 6:19
mentorGiorgi Dalakishvili18-Feb-09 6:19 
GeneralRe: Can someone recommend a good tutorial on events in .NET (C#) Pin
dan!sh 18-Feb-09 6:21
professional dan!sh 18-Feb-09 6:21 
QuestionVS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 3:30
Mihai Pruna18-Feb-09 3:30 
AnswerRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Deresen18-Feb-09 3:59
Deresen18-Feb-09 3:59 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 4:05
Mihai Pruna18-Feb-09 4:05 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Deresen18-Feb-09 4:09
Deresen18-Feb-09 4:09 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 4:56
Mihai Pruna18-Feb-09 4:56 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Deresen18-Feb-09 5:02
Deresen18-Feb-09 5:02 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 5:12
Mihai Pruna18-Feb-09 5:12 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Deresen18-Feb-09 5:21
Deresen18-Feb-09 5:21 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 6:07
Mihai Pruna18-Feb-09 6:07 

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.