View Single Post


Old 02-21-2011   #8 (permalink)
austin12456
Regular Member
austin12456's Avatar
Join Date: Jul 2010
Posts: 1,265
Thanks: 1,172
Default Re: Moar help with GPD's

Code:
Dim FDB As New FolderBrowserDialog
        FDB.ShowDialog()
        Dim ID
        Dim Parent As TreeListNode
        For Each FilePath As String In Directory.GetFiles(fdb.SelectedPath, "*.gpd")
            ID = Path.GetFileNameWithoutExtension(FilePath);

            Dim Node1 As TreeListNode = TreeList1.AppendNode(New Object(), Parent)
            Node1.SetValue(TreeListColumn1, Path.GetFullPath(FilePath))
            Node1.SetValue(TreeListColumn2, ID)
        Next
That doesn't fix anything, just a cleaner method.
__________________
austin12456 is offline
Reply With Quote