I'm writing a program to monitor a specific device. This device may or may not always be connected, and when connected may be connected to any one of several different ports; I'd like my program to handle this gracefully.
Is there a way to receive notifications when a specific USB device is connected, and from there to determine which port it is connected to?
Best Answer
To get an information if any hardware device has changed you can add the following code to your main form: