I have a device with a USB port and I'm using a WPF app to communicate with it. Now when the user executes my program it can detect all the available ports and let the user to choose from a drop down menu. The device in this case is this.
So far it is fine, but in this case the user has to first go to Device Manager and figure out the port of the device before selecting and connecting in my program.
Is there also a way that my program can automatically detect the particular device's port? (I guess in my program I need some info about the device but what I don't know).