I have a ComboBox that list out available COM ports. If there are new serial ports (e.g. USB) connected to computer in run-time, I have to trigger an event (e.g. Button) to run SerialPort.GetPortNames() and refreshes the ComboBoxItems. I wonder if it's possible to auto trigger an event once a new Serial Port is connected? (I know it's impossible for RS323, but at least for USB)
Asked
Active
Viewed 1,560 times
1
-
To my knowledge, this is not possible. You will need to poll. – Christian Madsen Apr 06 '11 at 12:23