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

C#

 
GeneralShockwave flash object Pin
Member 1136607910-Jan-15 21:01
Member 1136607910-Jan-15 21:01 
GeneralRe: Shockwave flash object Pin
Kornfeld Eliyahu Peter10-Jan-15 22:58
professionalKornfeld Eliyahu Peter10-Jan-15 22:58 
Questionquestion Pin
Syeada Sanjida Jahan10-Jan-15 18:03
Syeada Sanjida Jahan10-Jan-15 18:03 
AnswerRe: question Pin
Peter Leow10-Jan-15 18:20
professionalPeter Leow10-Jan-15 18:20 
QuestionHow to get array data in correct sequence from serial port in C# Pin
DredgPost10-Jan-15 9:52
DredgPost10-Jan-15 9:52 
SuggestionRe: How to get array data in correct sequence from serial port in C# Pin
Richard MacCutchan10-Jan-15 21:40
mveRichard MacCutchan10-Jan-15 21:40 
GeneralRe: How to get array data in correct sequence from serial port in C# Pin
DredgPost11-Jan-15 1:48
DredgPost11-Jan-15 1:48 
AnswerRe: How to get array data in correct sequence from serial port in C# Pin
OriginalGriff10-Jan-15 22:39
mveOriginalGriff10-Jan-15 22:39 
There is a problem here, which is likely to be that you don't really understand serial ports that well.
When a character arrives on a serial port, you will get a DataReceived event - that doesn't mean that 16 bytes are immediately available: serial ports are slow, and it is very likely that the event will be handled when there is only one character actually available. So trying to read 16 bytes every time the event gets signalled is not likely to do exactly what you want...

And if you read the documentation, the DataReceived event handler is never executed on the UI thread - so adding data to controls is a very, very bad idea.

Instead, consider reading the available bytes into the array and appending them, and then checking to see if you have them all. If you do, then your main process thread can work on the data, rather than the DateReceived thread.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: How to get array data in correct sequence from serial port in C# Pin
DredgPost11-Jan-15 11:39
DredgPost11-Jan-15 11:39 
Generalspeack to text Pin
Mạnh Tuyên9-Jan-15 17:27
Mạnh Tuyên9-Jan-15 17:27 
GeneralRe: speack to text Pin
OriginalGriff9-Jan-15 21:30
mveOriginalGriff9-Jan-15 21:30 
GeneralRe: speack to text Pin
Pete O'Hanlon10-Jan-15 2:44
mvePete O'Hanlon10-Jan-15 2:44 
AnswerRe: speack to text Pin
Afzaal Ahmad Zeeshan10-Jan-15 9:26
professionalAfzaal Ahmad Zeeshan10-Jan-15 9:26 
QuestionMultiline textbox scrollbars cannot be moved Pin
robwm19-Jan-15 13:00
robwm19-Jan-15 13:00 
AnswerRe: Multiline textbox scrollbars cannot be moved Pin
Eddy Vluggen9-Jan-15 22:04
professionalEddy Vluggen9-Jan-15 22:04 
GeneralRe: Multiline textbox scrollbars cannot be moved Pin
robwm112-Jan-15 7:39
robwm112-Jan-15 7:39 
GeneralRe: Multiline textbox scrollbars cannot be moved Pin
Eddy Vluggen12-Jan-15 7:56
professionalEddy Vluggen12-Jan-15 7:56 
GeneralRe: Multiline textbox scrollbars cannot be moved Pin
robwm112-Jan-15 7:59
robwm112-Jan-15 7:59 
GeneralRe: Multiline textbox scrollbars cannot be moved Pin
Eddy Vluggen12-Jan-15 10:14
professionalEddy Vluggen12-Jan-15 10:14 
GeneralRe: Multiline textbox scrollbars cannot be moved Pin
robwm112-Jan-15 10:28
robwm112-Jan-15 10:28 
Question3 Dimensional Array C# Pin
Member 113642179-Jan-15 10:35
Member 113642179-Jan-15 10:35 
AnswerRe: 3 Dimensional Array C# Pin
PIEBALDconsult9-Jan-15 10:51
mvePIEBALDconsult9-Jan-15 10:51 
GeneralRe: 3 Dimensional Array C# Pin
Member 1136421710-Jan-15 7:08
Member 1136421710-Jan-15 7:08 
AnswerRe: 3 Dimensional Array C# Pin
Eddy Vluggen9-Jan-15 12:37
professionalEddy Vluggen9-Jan-15 12:37 
GeneralRe: 3 Dimensional Array C# Pin
Member 1136421710-Jan-15 6:51
Member 1136421710-Jan-15 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.