Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How do I do this...

 

This is what I have but it returns a list of the subdirectories but with the full paths to them as well.

 

All I want is the Subdirectories within a Specific Directory.

 

Dim dirArr() As String = System.IO.Directory.GetDirectories("C:\Visual Studio 2005\Projects\AddressBook\")
       For Each itm As String In dirArr
           tsCombo1.Items.Add(itm)
       Next

 

So, what am I doing wrong?

 

vbMarkO

Visual Basic 2008 Express Edition!
Posted

Thanx this worked great!!!

 

I have also found another way to do this but your code was much simpler.

 

vbMarkO

Visual Basic 2008 Express Edition!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...