Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
GeneralRe: Anonymous methods problem [modified] Pin
Narvius1-Jul-09 6:32
Narvius1-Jul-09 6:32 
GeneralRe: Anonymous methods problem Pin
dojohansen1-Jul-09 21:05
dojohansen1-Jul-09 21:05 
GeneralRe: Anonymous methods problem Pin
Narvius2-Jul-09 0:06
Narvius2-Jul-09 0:06 
QuestionCopy project files to a new project Pin
Member 354381030-Jun-09 9:17
Member 354381030-Jun-09 9:17 
AnswerRe: Copy project files to a new project Pin
Narvius30-Jun-09 10:18
Narvius30-Jun-09 10:18 
GeneralRe: Copy project files to a new project Pin
dojohansen1-Jul-09 0:36
dojohansen1-Jul-09 0:36 
QuestionUninstalling (setup and d eployment project) - newbie question Pin
choo_chu30-Jun-09 9:02
choo_chu30-Jun-09 9:02 
AnswerRe: Uninstalling (setup and d eployment project) - newbie question Pin
EliottA30-Jun-09 9:19
EliottA30-Jun-09 9:19 
GeneralRe: Uninstalling (setup and d eployment project) - newbie question Pin
choo_chu30-Jun-09 9:52
choo_chu30-Jun-09 9:52 
AnswerRe: Uninstalling (setup and d eployment project) - newbie question Pin
Jimmanuel30-Jun-09 10:08
Jimmanuel30-Jun-09 10:08 
GeneralRe: Uninstalling (setup and d eployment project) - newbie question Pin
choo_chu30-Jun-09 10:45
choo_chu30-Jun-09 10:45 
GeneralRe: Uninstalling (setup and d eployment project) - newbie question Pin
choo_chu30-Jun-09 11:22
choo_chu30-Jun-09 11:22 
GeneralRe: Uninstalling (setup and d eployment project) - newbie question Pin
Jimmanuel30-Jun-09 11:27
Jimmanuel30-Jun-09 11:27 
Questionoverriding System.Diagnostics..::.DebuggerStepThroughAttribute Pin
Dan Neely30-Jun-09 8:45
Dan Neely30-Jun-09 8:45 
AnswerRe: overriding System.Diagnostics..::.DebuggerStepThroughAttribute Pin
Rob Smiley30-Jun-09 11:43
Rob Smiley30-Jun-09 11:43 
GeneralRe: overriding System.Diagnostics..::.DebuggerStepThroughAttribute Pin
Dan Neely1-Jul-09 2:13
Dan Neely1-Jul-09 2:13 
Questionserial port communication between computer and another hardware device via RS232 in C# for windows Application Pin
Arpita Patel30-Jun-09 6:52
Arpita Patel30-Jun-09 6:52 
AnswerRe: serial port communication between computer and another hardware device via RS232 in C# for windows Application Pin
monstale30-Jun-09 7:08
monstale30-Jun-09 7:08 
GeneralRe: serial port communication between computer and another hardware device via RS232 in C# for windows Application Pin
Arpita Patel30-Jun-09 9:31
Arpita Patel30-Jun-09 9:31 
AnswerRe: serial port communication between computer and another hardware device via RS232 in C# for windows Application Pin
Jimmanuel30-Jun-09 7:09
Jimmanuel30-Jun-09 7:09 
AnswerRe: serial port communication between computer and another hardware device via RS232 in C# for windows Application Pin
Luc Pattyn30-Jun-09 7:26
sitebuilderLuc Pattyn30-Jun-09 7:26 
Hi,

if you can choose the protocol freely, then this would probably be the easiest set-up with reasonable reliability:
- send everything as text using ASCII, i.e. don't use binary data;
- end each message on a reserved character, \n is a good choice; you can achieve this by setting
SerialPort.NewLine to '\n' and using WriteLine()
- create a receiver thread, which basically is an eternal loop performing a ReadLine(); this one will block until a SerialPort.NewLine was received, then return all the data received so far, which would be exactly one message.
WARNING: the receiver thread cannot directly access any GUI Controls, it needs Control.Invoke for that.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

AnswerRe: serial port communication between computer and another hardware device via RS232 in C# for windows Application Pin
Tr@v1-Jul-09 10:59
Tr@v1-Jul-09 10:59 
GeneralRe: serial port communication between computer and another hardware device via RS232 in C# for windows Application Pin
Member 647306611-Aug-09 6:00
Member 647306611-Aug-09 6:00 
GeneralRe: serial port communication between computer and another hardware device via RS232 in C# for windows Application Pin
Member 647306614-Oct-09 5:58
Member 647306614-Oct-09 5:58 
GeneralRe: serial port communication between computer and another hardware device via RS232 in C# for windows Application Pin
Tr@v14-Oct-09 7:30
Tr@v14-Oct-09 7:30 

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.