I'm using Visual Studio .NET 2003 to create a VB Application.
I was attempting to use the following link's accepted answer to assist me with creating a combo box, and loading in a list of only removeable storage drives on a computer (thus omitting Local and Network Drives):
With the code, I was attempting to modify it such that certain lines weren't as long, by using the statement:
In doing that, I received the following message, with System.Management underlined in blue:
Namespace or type 'Management' for Imports 'System.Management' cannot be found.
I know my import statement has been used in other answers on Experts-Exchange, so it's probably safe to assume that it does work.
If I even leave the code as-is, ANY occurance of System.Management in the code produces an error.
Is the code compatible with only a different version of VB .NET? Am I missing a file? Can someone produce code for me that will work? I want my listbox's items to look similar to this:
A:\ - 3 1/2-Inch Floppy Disk
F:\ - CD Drive