Click here to Skip to main content
15,885,914 members
Home / Discussions / C#
   

C#

 
GeneralRe: MdiParent-Child problem Pin
_Erik_25-Oct-10 3:36
_Erik_25-Oct-10 3:36 
GeneralRe: MdiParent-Child problem Pin
Erdinc2725-Oct-10 3:53
Erdinc2725-Oct-10 3:53 
QuestionOptional Argument Pin
Anubhava Dimri22-Oct-10 21:09
Anubhava Dimri22-Oct-10 21:09 
AnswerRe: Optional Argument Pin
JF201522-Oct-10 21:33
JF201522-Oct-10 21:33 
AnswerRe: Optional Argument Pin
Abhinav S22-Oct-10 22:53
Abhinav S22-Oct-10 22:53 
AnswerShameless Plug Pin
Keith Barrow23-Oct-10 3:05
professionalKeith Barrow23-Oct-10 3:05 
GeneralRe: Shameless Plug Pin
Anubhava Dimri24-Oct-10 18:09
Anubhava Dimri24-Oct-10 18:09 
QuestionChars received Pin
Tichaona J22-Oct-10 10:26
Tichaona J22-Oct-10 10:26 
Hi I am trying to figure out why my method keeps only showing me the first character from a sent string. I would like it to show all the characters that were sent.

public void OnDataReceived(IAsyncResult asyn)
       {
           try
           {
               SocketPacket socketData = (SocketPacket)asyn.AsyncState;

               int iRx = 0;

               iRx = socketData.currentSoc.EndReceive(asyn);

               char[] chars = new char[iRx];
               System.Text.Decoder d = System.Text.Encoding.UTF8.GetDecoder();

               int charLen = d.GetChars(socketData.dataBuffer, 0, iRx, chars, 0);

               System.String szData = new System.String(chars);

               MessageBox.Show(szData);<<<<<<<<<<<<What ever message is sent is supposed to show up in this message box...

               WaitForData(socketData.currentSoc);

           }//End of try

           catch (ObjectDisposedException)
           {
               System.Diagnostics.Debugger.Log(0, "1", "\nOnDataReceived: Socket has been closed\n");

           }//End of catch1

           catch (SocketException se)
           {
               MessageBox.Show(se.Message);
           }//End of catch2

       }//End of OnDataReceived method..

AnswerRe: Chars received Pin
dbrenth22-Oct-10 10:49
dbrenth22-Oct-10 10:49 
GeneralRe: Chars received Pin
Tichaona J22-Oct-10 11:11
Tichaona J22-Oct-10 11:11 
AnswerRe: Chars received [modified] Pin
Pete O'Hanlon22-Oct-10 11:54
mvePete O'Hanlon22-Oct-10 11:54 
AnswerRe: Chars received [modified] Pin
Luc Pattyn22-Oct-10 15:23
sitebuilderLuc Pattyn22-Oct-10 15:23 
QuestionParsing csv file with commas and quotes as deliminators Pin
roman_s22-Oct-10 9:00
roman_s22-Oct-10 9:00 
AnswerRe: Parsing csv file with commas and quotes as deliminators Pin
fjdiewornncalwe22-Oct-10 10:35
professionalfjdiewornncalwe22-Oct-10 10:35 
AnswerRe: Parsing csv file with commas and quotes as deliminators [Modified] Pin
OriginalGriff22-Oct-10 10:40
mveOriginalGriff22-Oct-10 10:40 
AnswerRe: Parsing csv file with commas and quotes as deliminators Pin
Luc Pattyn22-Oct-10 15:25
sitebuilderLuc Pattyn22-Oct-10 15:25 
GeneralRe: Parsing csv file with commas and quotes as deliminators Pin
PIEBALDconsult22-Oct-10 16:42
mvePIEBALDconsult22-Oct-10 16:42 
GeneralRe: Parsing csv file with commas and quotes as deliminators Pin
Luc Pattyn22-Oct-10 16:43
sitebuilderLuc Pattyn22-Oct-10 16:43 
AnswerRe: Parsing csv file with commas and quotes as deliminators Pin
Brady Kelly22-Oct-10 19:23
Brady Kelly22-Oct-10 19:23 
GeneralRe: Parsing csv file with commas and quotes as deliminators Pin
OriginalGriff22-Oct-10 22:21
mveOriginalGriff22-Oct-10 22:21 
GeneralRe: Parsing csv file with commas and quotes as deliminators Pin
PIEBALDconsult15-Dec-10 7:40
mvePIEBALDconsult15-Dec-10 7:40 
GeneralRe: Parsing csv file with commas and quotes as deliminators Pin
Brady Kelly15-Dec-10 19:39
Brady Kelly15-Dec-10 19:39 
AnswerRe: Parsing csv file with commas and quotes as deliminators Pin
OriginalGriff22-Oct-10 23:39
mveOriginalGriff22-Oct-10 23:39 
GeneralRe: Parsing csv file with commas and quotes as deliminators Pin
Luc Pattyn23-Oct-10 2:45
sitebuilderLuc Pattyn23-Oct-10 2:45 
GeneralRe: Parsing csv file with commas and quotes as deliminators Pin
OriginalGriff23-Oct-10 3:43
mveOriginalGriff23-Oct-10 3:43 

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.