Click here to Skip to main content
15,881,757 members
Home / Discussions / C#
   

C#

 
GeneralRe: Loading a Data Table form a DataGrid view but still no joy. Pin
OriginalGriff23-Oct-22 21:35
mveOriginalGriff23-Oct-22 21:35 
QuestionC# Save DataGrid Only MultiSelected Rows to File Pin
CodaNV22-Oct-22 17:03
CodaNV22-Oct-22 17:03 
AnswerRe: C# Save DataGrid Only MultiSelected Rows to File Pin
Dave Kreskowiak22-Oct-22 17:50
mveDave Kreskowiak22-Oct-22 17:50 
GeneralRe: C# Save DataGrid Only MultiSelected Rows to File Pin
CodaNV22-Oct-22 18:11
CodaNV22-Oct-22 18:11 
GeneralRe: C# Save DataGrid Only MultiSelected Rows to File Pin
Dave Kreskowiak22-Oct-22 18:24
mveDave Kreskowiak22-Oct-22 18:24 
GeneralRe: C# Save DataGrid Only MultiSelected Rows to File Pin
CodaNV22-Oct-22 18:47
CodaNV22-Oct-22 18:47 
QuestionArduino canot control computer. Pin
Member 1549382322-Oct-22 10:38
Member 1549382322-Oct-22 10:38 
AnswerRe: Arduino canot control computer. Pin
OriginalGriff22-Oct-22 10:53
mveOriginalGriff22-Oct-22 10:53 
Data receive events occur when a character arrives at the coms buffer, not when a message is complete.
So when you call ReadExisting you will get a string containing all the characters received since the last call - and with modern processors being fast and serial coms being slow (9600 baud means a fastest data transfer rate of 9600 bits per second, which translates to around 960 characters per second at best) the most likely result is that each time it's called you will get one and only ever one character at a time.

And since your code overwrites whatever was in the jb_serial_read string each time the event happens, that means that you will never see the complete message. You need to buffer data, spot teh end of data, and feed it back up the chain as a message instead of character by characters.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

QuestionReliable COM Port Communication Pin
Member 1495533221-Oct-22 1:36
Member 1495533221-Oct-22 1:36 
QuestionSimple Snake Game - Snake Head is not moving after ReadKey() Pin
Programmable Physics20-Oct-22 0:12
Programmable Physics20-Oct-22 0:12 
AnswerRe: Simple Snake Game - Snake Head is not moving after ReadKey() Pin
jsc4220-Oct-22 0:23
professionaljsc4220-Oct-22 0:23 
Questionget string from if statement in c# Pin
Sycho AN19-Oct-22 11:04
Sycho AN19-Oct-22 11:04 
AnswerRe: get string from if statement in c# Pin
OriginalGriff19-Oct-22 11:32
mveOriginalGriff19-Oct-22 11:32 
GeneralRe: get string from if statement in c# Pin
Sycho AN19-Oct-22 12:24
Sycho AN19-Oct-22 12:24 
GeneralRe: get string from if statement in c# Pin
Dave Kreskowiak19-Oct-22 12:33
mveDave Kreskowiak19-Oct-22 12:33 
AnswerRe: get string from if statement in c# Pin
Gerry Schmitz19-Oct-22 14:10
mveGerry Schmitz19-Oct-22 14:10 
AnswerRe: get string from if statement in c# Pin
Pete O'Hanlon21-Oct-22 8:20
mvePete O'Hanlon21-Oct-22 8:20 
QuestionHow to know if 2 ASCII created lines in a command prompt has the same length? Pin
Programmable Physics18-Oct-22 2:19
Programmable Physics18-Oct-22 2:19 
AnswerRe: How to know if 2 ASCII created lines in a command prompt has the same length? Pin
Richard Deeming18-Oct-22 2:35
mveRichard Deeming18-Oct-22 2:35 
AnswerRe: How to know if 2 ASCII created lines in a command prompt has the same length? Pin
OriginalGriff18-Oct-22 3:19
mveOriginalGriff18-Oct-22 3:19 
QuestionAccessControl for Domain Users Pin
ormonds17-Oct-22 18:11
ormonds17-Oct-22 18:11 
AnswerRe: AccessControl for Domain Users Pin
Richard Deeming17-Oct-22 22:11
mveRichard Deeming17-Oct-22 22:11 
GeneralRe: AccessControl for Domain Users Pin
ormonds18-Oct-22 12:40
ormonds18-Oct-22 12:40 
QuestionI am using rdlc report and report viewer control.When i export the rdlc report to pdf the words written in hindi are not correctly displayed in the pdf. Pin
Member 1315824616-Oct-22 23:14
Member 1315824616-Oct-22 23:14 
AnswerRe: I am using rdlc report and report viewer control.When i export the rdlc report to pdf the words written in hindi are not correctly displayed in the pdf. Pin
Richard Deeming16-Oct-22 23:24
mveRichard Deeming16-Oct-22 23:24 

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.