Click here to Skip to main content
15,887,910 members
Home / Discussions / C#
   

C#

 
Questioncalculator Pin
Sottyoru24-Oct-13 12:45
Sottyoru24-Oct-13 12:45 
AnswerRe: calculator Pin
PIEBALDconsult24-Oct-13 17:12
mvePIEBALDconsult24-Oct-13 17:12 
AnswerRe: calculator Pin
BillWoodruff24-Oct-13 17:33
professionalBillWoodruff24-Oct-13 17:33 
AnswerRe: calculator Pin
V.25-Oct-13 3:10
professionalV.25-Oct-13 3:10 
QuestionReading from serial port Pin
alfie.max1524-Oct-13 7:39
alfie.max1524-Oct-13 7:39 
AnswerRe: Reading from serial port Pin
jschell24-Oct-13 7:57
jschell24-Oct-13 7:57 
GeneralRe: Reading from serial port Pin
alfie.max1524-Oct-13 8:18
alfie.max1524-Oct-13 8:18 
AnswerRe: Reading from serial port Pin
OriginalGriff24-Oct-13 8:08
mveOriginalGriff24-Oct-13 8:08 
Don't use either of them like that.
Instead, handle the SerialPort.DataReceived[^] event, and get the data in that using ReadExisting - you can then add the data to the textbox in the event handler and you should never lose any data, nor should your UI freeze up.

Remember, Serial ports are very slow devices - data transfer is not instantaneous, nor is it packet based. if you are running your serial port as 9600 baud for example, it will receive one character about every millisecond (7 data bits, 1 parity, 1 start and one stop bit == 10 bits, 9600/10 = 960 characters per second.)
So if you just read once, you will get whatever characters are in teh buffer at that moment, and nevr get any more.
The only instant messaging I do involves my middle finger.

English doesn't borrow from other languages.
English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.

GeneralRe: Reading from serial port Pin
alfie.max1524-Oct-13 8:58
alfie.max1524-Oct-13 8:58 
GeneralRe: Reading from serial port Pin
OriginalGriff24-Oct-13 9:07
mveOriginalGriff24-Oct-13 9:07 
GeneralRe: Reading from serial port Pin
alfie.max1524-Oct-13 9:13
alfie.max1524-Oct-13 9:13 
AnswerRe: Reading from serial port Pin
OriginalGriff24-Oct-13 9:51
mveOriginalGriff24-Oct-13 9:51 
GeneralRe: Reading from serial port Pin
alfie.max1524-Oct-13 19:12
alfie.max1524-Oct-13 19:12 
GeneralRe: Reading from serial port Pin
OriginalGriff24-Oct-13 21:50
mveOriginalGriff24-Oct-13 21:50 
GeneralRe: Reading from serial port Pin
alfie.max1525-Oct-13 1:30
alfie.max1525-Oct-13 1:30 
AnswerRe: Reading from serial port Pin
PIEBALDconsult24-Oct-13 17:32
mvePIEBALDconsult24-Oct-13 17:32 
QuestionI need help with control inheritance Pin
deebow24-Oct-13 4:39
deebow24-Oct-13 4:39 
AnswerRe: I need help with control inheritance Pin
OriginalGriff24-Oct-13 5:02
mveOriginalGriff24-Oct-13 5:02 
GeneralRe: I need help with control inheritance Pin
BillWoodruff24-Oct-13 6:07
professionalBillWoodruff24-Oct-13 6:07 
AnswerRe: I need help with control inheritance Pin
BillWoodruff24-Oct-13 6:02
professionalBillWoodruff24-Oct-13 6:02 
GeneralRe: I need help with control inheritance Pin
OriginalGriff24-Oct-13 6:25
mveOriginalGriff24-Oct-13 6:25 
GeneralRe: I need help with control inheritance Pin
deebow24-Oct-13 6:44
deebow24-Oct-13 6:44 
GeneralRe: I need help with control inheritance Pin
BillWoodruff24-Oct-13 16:56
professionalBillWoodruff24-Oct-13 16:56 
Questionhow to create stetmen foreach gridcontrol devexpress Pin
Member 1027082523-Oct-13 23:19
Member 1027082523-Oct-13 23:19 
QuestionRe: how to create stetmen foreach gridcontrol devexpress Pin
Richard MacCutchan23-Oct-13 23:27
mveRichard MacCutchan23-Oct-13 23:27 

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.