There are event handlers available to detected device attachment and removal. You can refer to the source code of the C# streamer in the FX3 SDK as a reference.
Go to the file "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\application\c_sharp\streamer\form1.cs"
There you can see the event handlers declared as:
//Assign event handlers for device attachment and device removal.
usbDevices.DeviceAttached += new EventHandler(usbDevices_DeviceAttached);
usbDevices.DeviceRemoved += new EventHandler(usbDevices_DeviceRemoved);
- Madhu Sudhan