.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

show only External Drive

Posted By: kamlesh     Posted Date: August 19, 2011    Points:5   Category :C#
how to show only external drive in browse dialog using C#
means if i click button for browsing file or folder so it shows only External Drives How to do
Please Help me

Author: Gowthammanju             
Posted Date: August 20, 2011     Points: 20   

Hey try these coding as

DriveInfo[] ListDrives = DriveInfo.GetDrives();

foreach (DriveInfo Drive in ListDrives)
if (Drive.DriveType == DriveType.Removable)
//Add to RemovableDrive list or whatever activity you want

u will get all external devices connected to system

Thanks & Regards,

Mark if the answer is true

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend