views:

175

answers:

1

Hi, I need to develop an ActiveX control that can read CD's and USB drives.

Is there a good tutorial on developing sucha a control in visual studio using C#?

+3  A: 

MSDN
MSMVPS
C# Corner

If you would like to get a list of drives and DoWork with the Removable and CDRom drives:

DriveInfo[] ListDrives = DriveInfo.GetDrives();

foreach (DriveInfo Drive in ListDrives)
{
    if (Drive.DriveType.Removable || Drive.DriveType.CDRom)
    {
    //DoWork
    }    
}

Then you can check if what you would like to read exists and then read it.

ThePower
I sense the first 3 hits on Google when you typed in "building an activex control using visual studio". LMGTFY
kjfletch