S
snow
Hi all,
I open Form2 and add a handler in the form load event: AddHandler
SerialPort1.DataReceived, Addressof ComPort_DataReceived. In
ComPort_DataReceived procedure, I try to close Form2 and open another
form Form3 after data received, I got run time error "Cross thread
operation not valid". How to solve this problem?
Thanks for the help!
I open Form2 and add a handler in the form load event: AddHandler
SerialPort1.DataReceived, Addressof ComPort_DataReceived. In
ComPort_DataReceived procedure, I try to close Form2 and open another
form Form3 after data received, I got run time error "Cross thread
operation not valid". How to solve this problem?
Thanks for the help!