1

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)

KMC
  • 18,922
  • 56
  • 157
  • 248

1 Answers1

0

How do I detect when a removable disk is inserted using C#?

Community
  • 1
  • 1
Ryan Alford
  • 7,344
  • 5
  • 41
  • 55