Quote:
but i could not
what does that mean ? what happens ?? do you get an error ??? have you stepped through your program with a debugger (if so, what happened, if not, WHY NOT) ????
you say you have a serial cable - ok, did you build it or buy it ? either way, are you sure you have what is known as a 'null modem' cable ?
On the receiving side, wouldnt using the DataReceived Event Handler be better than just reading from the port assuming there is data there ?
finally .. the C# Implementation of System.IO.Ports leaves a lot to be desired - its 'buggy' - the net is full of fixes/abstractions to get around its quirks