Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
QuestionReplicate Word 2013 Open Recent Documents Menu Pin
Running Fool29-Jan-14 5:16
Running Fool29-Jan-14 5:16 
AnswerRe: Replicate Word 2013 Open Recent Documents Menu Pin
Shameel29-Jan-14 20:48
professionalShameel29-Jan-14 20:48 
GeneralRe: Replicate Word 2013 Open Recent Documents Menu Pin
Running Fool30-Jan-14 4:19
Running Fool30-Jan-14 4:19 
AnswerRe: Replicate Word 2013 Open Recent Documents Menu Pin
Running Fool30-Jan-14 4:38
Running Fool30-Jan-14 4:38 
Questionserial port writing and reading Pin
khomeyni29-Jan-14 3:21
khomeyni29-Jan-14 3:21 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6429-Jan-14 6:23
professionalRichard Andrew x6429-Jan-14 6:23 
GeneralRe: serial port writing and reading Pin
khomeyni29-Jan-14 6:37
khomeyni29-Jan-14 6:37 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6429-Jan-14 6:44
professionalRichard Andrew x6429-Jan-14 6:44 
One thing you could try is to read from the port using the ReadLine function. This only returns after it reads a newline sequence.

Then, in your send function, use the WriteLine function, which will append a newline sequence to each packet.

If this does not suit your requirements, then you'll have to implement your own stream scheme to buffer the received data until it is complete, and only then process it.



The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: serial port writing and reading Pin
Richard Andrew x6429-Jan-14 7:00
professionalRichard Andrew x6429-Jan-14 7:00 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 4:34
khomeyni30-Jan-14 4:34 
GeneralRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 7:59
professionalRichard Andrew x6430-Jan-14 7:59 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 8:17
khomeyni30-Jan-14 8:17 
GeneralRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 8:23
professionalRichard Andrew x6430-Jan-14 8:23 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 8:26
khomeyni30-Jan-14 8:26 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 8:34
professionalRichard Andrew x6430-Jan-14 8:34 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 8:50
khomeyni30-Jan-14 8:50 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 8:52
professionalRichard Andrew x6430-Jan-14 8:52 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 8:59
khomeyni30-Jan-14 8:59 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 9:06
professionalRichard Andrew x6430-Jan-14 9:06 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 9:06
khomeyni30-Jan-14 9:06 
Questiondepicting data in c# in realtime Pin
khomeyni29-Jan-14 2:38
khomeyni29-Jan-14 2:38 
AnswerRe: depicting data in c# in realtime Pin
Eddy Vluggen29-Jan-14 2:59
professionalEddy Vluggen29-Jan-14 2:59 
GeneralRe: depicting data in c# in realtime Pin
khomeyni29-Jan-14 6:43
khomeyni29-Jan-14 6:43 
GeneralRe: depicting data in c# in realtime Pin
Eddy Vluggen29-Jan-14 8:01
professionalEddy Vluggen29-Jan-14 8:01 
GeneralRe: depicting data in c# in realtime Pin
khomeyni30-Jan-14 4:26
khomeyni30-Jan-14 4:26 

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.