Custom OpenFileDialog

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

It seems this one comes up all the time but I could not find anything.
I need a customized FileOpenDialog. As I could not find any I decided to
write my own.
I have the following questions:
1. How do I find information about logical devices? There are functions
returning logical drives' names, but no info what they are (floppy, CD-ROM,
hard drive)
2. How do I browse the network (if there is one)?

Thank you
 
Z said:
It seems this one comes up all the time but I could not find anything.
I need a customized FileOpenDialog. As I could not find any I decided to
write my own.
I have the following questions:
1. How do I find information about logical devices? There are functions
returning logical drives' names, but no info what they are (floppy,
CD-ROM,
hard drive)
2. How do I browse the network (if there is one)?

The sample below contains code to determine a drive's type:

Opening and closing the CD-ROM drive
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=setcddoorstatus&lang=en>

FolderTreeView control
<URL:http://www.codeproject.com/cs/miscctrl/foldertreeview.asp>
 
Hi Z,

You're going to want to look into System.Management.ManagementObjectSearcher
and System.Management.ManagementObject.

HTH,

Bernie Yaeger
 
Back
Top