Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
AnswerRe: change from Textbox to datetimepicker Pin
Mycroft Holmes25-Oct-13 21:37
professionalMycroft Holmes25-Oct-13 21:37 
GeneralRe: change from Textbox to datetimepicker Pin
OriginalGriff25-Oct-13 21:43
mveOriginalGriff25-Oct-13 21:43 
GeneralRe: change from Textbox to datetimepicker Pin
Mycroft Holmes26-Oct-13 0:43
professionalMycroft Holmes26-Oct-13 0:43 
GeneralRe: change from Textbox to datetimepicker Pin
OriginalGriff26-Oct-13 0:51
mveOriginalGriff26-Oct-13 0:51 
AnswerRe: change from Textbox to datetimepicker Pin
OriginalGriff25-Oct-13 21:41
mveOriginalGriff25-Oct-13 21:41 
QuestionLost Child Handle in DLL Pin
RickiB25-Oct-13 10:42
RickiB25-Oct-13 10:42 
AnswerRe: Lost Child Handle in DLL Pin
Richard MacCutchan25-Oct-13 22:55
mveRichard MacCutchan25-Oct-13 22:55 
GeneralRe: Lost Child Handle in DLL Pin
RickiB28-Oct-13 9:36
RickiB28-Oct-13 9:36 
GeneralRe: Lost Child Handle in DLL Pin
Richard MacCutchan28-Oct-13 22:25
mveRichard MacCutchan28-Oct-13 22:25 
QuestionWebBrowser control in C# Pin
msr_codeproject24-Oct-13 20:01
msr_codeproject24-Oct-13 20:01 
AnswerRe: WebBrowser control in C# Pin
M Rayhan24-Oct-13 20:30
M Rayhan24-Oct-13 20:30 
GeneralRe: WebBrowser control in C# Pin
msr_codeproject24-Oct-13 20:57
msr_codeproject24-Oct-13 20:57 
AnswerRe: WebBrowser control in C# Pin
Eddy Vluggen24-Oct-13 22:49
professionalEddy Vluggen24-Oct-13 22:49 
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 

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.