I
I
Igor Mamushin2015-09-07 12:07:43
.NET
Igor Mamushin, 2015-09-07 12:07:43

How to track a COM device connection in C#?

Save.
There is a device that creates a virtual COM port in Windows (the device itself is connected via USB and has its own driver), how can I find out from the C # application that the device is connected to the computer?
As a matter of fact the task such when the device is connected on the form the button becomes available when is disconnected, the button, respectively, disappears or is disconnected.
PS Device Opticon CLH-3001

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Voronov, 2015-09-07
@FatalER

This can be done using WMI. You can subscribe to the connection event of new devices.
Small example karlagius.com/2009/03/04/keeping-track-of-usb-devi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question