Please explain why in a button event handler I can not send a message to a serial port and then read the reply.
private void button1_Click(object sender, EventArgs e)
serialPort1.Read(reply); //can't do this
I've already implemented the read in a serialPort1_DataReceived
event handler. It's my boss who knows only old procedural programming languages who doesn't understand why I can't simply translate his old procedural program to C# with a GUI. I try and explain "event-driven" programming to him. he still wants to know why it can't be done. I know it can't be done, and it has something to do with "blocking events". I'd like to learn more of the details behind why this can't be done.