The purpose of this post is simply to let you know of some codes/librairies available to help with usb programming like detecting when a usb device has been added/removed, which the .net based class helps with, etc…
Visual Basic 6.0; VB 5.0
The first library is for Visual Basic 5 and 6.0 and is provided by Intel (Intel is the main inventer of USB as well) and includes various bas/modules for use in your applications. I’ve had this link and files on my vbcodesource.com page for years but now that I found a .net library that can do alittle something with usb devices I figured it would be worth making a post for both of them. BTW, these VB 6.0 USB modules do Much more than the below .net library.
Visual Basic.NET Compatible Class Library
Strolling through some of the latest updates at thecodeproject.com I noticed someone made a USB library using C# for detecing the attachment and detachment of usb devices. He provides the source code, compiled class, and a demo app with the usb library in action. If you simply want the class to make a reference to, then download the source code version. Then under the Bin/Release directory you will see the ‘USBClassLibrary.Dll’ which is what you want to make a reference to.
Although I don’t provide any examples or anything, hopefully this will at least give you a nice jump start on getting your USB basics taken care of. Have Fun!