Serialport Class: SerialDataReceivedEventHandler

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all!

I was wondering if any of you could shed some light on this problem I cant
seem to figure out...

I try to add an event handler to my SerialPort variable by doing:

mySerialPort.DataReceived += new
SerialDataReceivedEventHandler(newDataReceived);

where "newDataReceived" is the function delegated to handle the event of new
data being received on the serial port. Upon debugging, however, the program
never calls the newDataReceived function, even though new data is clearly
being received (after testing). Any ideas? Thank you!!!
 
Thanks wg. I checked out that site too, but the code is in VB. Trying to find
a way to do so in C#. Thank you though. I appreciate it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top