I am making a program in C# and I got a lot of tips from this site. But now I am facing a problem I can't solve.
I want the program to download a file from the internet to an USB device. This USB device must be selected in a Combobox. The code I used for this is:
var drives = from drive in DriveInfo.GetDrives() //search removable drives
where drive.DriveType == DriveType.Removable
select drive;
dropdowndrive.DataSource = drives.ToList(); //add removable drives to combobox
It works but only when I insert the USB drive before booting the program. How can I show a removable device which has been inserted after booting the program?