I have an open SerialPort and receive data through the DataReceived event.
SerialPort
DataReceived
Is there any way to detect if the SerialPort gets d
The problem is that IsOpen value is only set back to false when the Close method is executed.
IsOpen
false
Close
You could try caputuring the WM_DEVICECHANGE message and using that.
WM_DEVICECHANGE
http://msdn.microsoft.com/en-us/library/windows/desktop/aa363480(v=vs.85).aspx